encode static method

String encode(
  1. Object container
)

Encodes a structured object to a JSON string.

container is the object to serialize (typically Map or List).

Returns the JSON-encoded string.

Implementation

static String encode(Object container) {
  return coder!.encode(container);
}