writeJson method

void writeJson(
  1. Object? object
)

Write json with pretty output

Implementation

void writeJson(Object? object) => writeJsonWithCode(HttpStatus.ok, object);