json5Decode function

dynamic json5Decode(
  1. String string
)

Parses the string and return the json object.

If the input string is not json or json5, an SyntaxException will be thrown.

You can use the altenative method JSON5.parse(string)

Implementation

dynamic json5Decode(String string) {
  return parser.parse(string, null);
}