json_data
Helper package for converting nested json
Features
- string -> json array (List)
- string -> json object (Map)
- List -> stringified json
- Map -> stringified json
Getting started
- No prerequisites required
Usage
// return : stringified json
JsonData.toJsonString({
'hello': 'world',
'list': [
1,
null,
true,
'flutter',
false,
[456, 654],
{
'deep-level': null,
'deeper-level': {'hello': 'world'}
}
]
});
// return : Map<String, dynamic>
JsonData.fromJsonString(
'{"hello": "world", "list": [1, null, true, "flutter", false, [456, 654], {"deep-level": null, "deeper-level": {"hello": "world"}}]}')
Additional information
- If you have any issue or suggestion contact me via github. github repository