json_native library

Json Native Library

Extensions

JsonObjectExtension on JsonObject
Extension methods for JsonObject

Functions

jsonDecode(String source, {Object? reviver(Object? key, Object? value)?}) → dynamic
Parses the string and returns the resulting Json object.
jsonDecodeCast<T>(String json) → T
Same as jsonDecode but returns strong typed result.
jsonDecodeList<T>(String json) List<T>
Same as jsonDecode but returns strong typed list.
jsonEncode(Object? object, {Object? toEncodable(Object? nonEncodable)?}) String
Converts object to a JSON string.

Typedefs

JsonObject = Map<String, dynamic>
Type alias for Map<String, dynamic>

Exceptions / Errors

JsonTypeException
Json decoding exception