dart_json_path 0.0.2 copy "dart_json_path: ^0.0.2" to clipboard
dart_json_path: ^0.0.2 copied to clipboard

outdated

A Flutter plugin which support jsonPath on jsonString data. It is utility for reading and writing data from json. It is well tested on project and working fine in terms of functionallity.

dart_json_path #

A new Flutter package.

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

var jsonPath = JsonPath.getInsatnce(); var myJSON = '{ "age":31, "city":"New York"}'; var path = "$.name.firstName"; var nodeValue = "Vinay"; var outPut = jsonPath.write(myJSON, path, nodeValue); print(outPut);

/// Output will be like this. /// {"age":31,"city":"New York","name":{"firstName":"Vinay"}}

var jsonPath = JsonPath.getInsatnce(); var myJSON = '{ "name" : "vinay", "age":31, "city":"New York"}'; var path = "$.address[0].city"; var nodeValue = "Agra"; var outPut = jsonPath.write(myJSON, path, nodeValue); print(outPut);

/// Output will be like this. ///{"name":"vinay","age":31,"city":"New York","address":[{"city":"Agra"}]}

var jsonPath = JsonPath.getInsatnce(); var myJSON = '{"name":"vinay","age":31,"city":"New York","address":[{"city":"Agra"}]}'; var path = "$.address[0].city"; var outPut = jsonPath.read(myJSON, path); print(outPut); ///output will be like this ///Agra

1
likes
30
pub points
13%
popularity

Publisher

unverified uploader

A Flutter plugin which support jsonPath on jsonString data. It is utility for reading and writing data from json. It is well tested on project and working fine in terms of functionallity.

Repository (GitHub)
View/report issues

License

Apache-2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on dart_json_path