encode static method

String encode(
  1. dynamic object
)

encode takes an object and returns a JSON string representation of that object. The object can be a simple object, a list, a set, or an object that implements Serializable. The object can contain circular references.

Implementation

static String encode(dynamic object) {
  return _Writer(object).toString();
}