Json.fromSource constructor

Json.fromSource(
  1. String source
)

Create a JSON value corresponding to the given source.

The source is transformed by jsonDecode to an object structure which is then the value.

Implementation

Json.fromSource(String source) : value = jsonDecode(source);