json method

Future<bool> json(
  1. dynamic value
)

Serializes JSON to the response.

Implementation

Future<bool> json(value) =>
    serialize(value, contentType: MediaType('application', 'json'));