JSON5 class abstract

JSON5 contains 2 static methods parse() and stringify()

The name JSON5 is uppercase so that it compatible with document.

If you love dart convention. You can also use json5Encode() and json5Decode() instead.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

parse(String string) → dynamic
Parses the string and return the json object.
stringify(dynamic object, {dynamic space = 0, Object? toEncodable(Object? nonEncodable)?}) String
Convert the object to json5 string.