json_data 0.0.1 copy "json_data: ^0.0.1" to clipboard
json_data: ^0.0.1 copied to clipboard

json converter

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 #

0
likes
120
pub points
23%
popularity

Publisher

unverified uploader

json converter

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on json_data