- Replaced pedantic package with lints package, fixed some analysis issues (#16)
- Updated package description, fixed analysis issues (#15)
- feat: values without decimal point or exponent should be
int
type
- feat: toEncodable parameter
- feat: toDecodable is default to
toMap()
thentoJson()
thentoString()
json5Encode(obj, toEncodable: (v) => v.toMap())
- feat: serialize iterable objects
- fix: JSON.stringify return non-null String
- fix: indentication can be number and string
- Migrating to null safety
- hotfix: dart not support '\0' escape
- Fix: RangeError when stringify a string with ending '\0'
- fix: json5Decode() should return Map<String, dynamic> instead of Map<dynamic, dynamic>
- support runtime-js, flutter web
- fix: cannot stringify object if their keys are not string .
- supports Map, List, null, num, bool, String
JSON5.parse( aString );
JSON5.stringify( anObj )
JSON5.stringify( abObj, space:2 )
json5Decode( aString );
json5Encode( anObj )
json5Encode( abObj, space:2 )