json method

Future<bool> json(
  1. Object? value
)

Serializes JSON to the response.

Implementation

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