json method

void json (
  1. dynamic value
)

Serializes JSON to the response.

Implementation

void json(value) => this
  ..contentType = MediaType('application', 'json')
  ..serialize(value);