json static method

String json(
  1. dynamic data
)

Serializes the given object into a JSON string by use of jsonEncode.

Implementation

static String json(data) => cvt.json.encode(data).replaceAll(_scriptPtn, r"<\/");