Flutter Gems is a curated list of 6000+ useful Dart & Flutter packages that are categorized based on functionality.

Discord Medium LinkedIn Twitter

Top Flutter JSON packages

Last updated: November 15, 2024

Want to work with JSON in Dart & Flutter! JSON (JavaScript Object Notation) is widely used in Flutter app development as it enables seamless data interchange between the app's frontend and backend. There are various packages that make JSON manipulation, editing, viewing and analysis as efficient and user-friendly as possible. Here's a list of features that are provided these packages:

  1. JSON Parsing: JSON parsing in Flutter involves the extraction and interpretation of data encoded in JSON format, facilitating its integration into the Flutter application's logic and user interface.
  2. JSON Validation: Validate JSON data for syntax errors and compliance with the JSON specification.
  3. JSON Editing: Easily add, modify, or remove JSON keys and values.
  4. JSON View or Visualization: Tree view or hierarchical representation of JSON structure for easy navigation. Collapse/expand sections for complex JSON objects.
  5. JSON to/from Other Formats: Convert JSON data to other formats like XML, YAML, CSV, etc.
  6. Pretty Printing: Format JSON data with proper indentation and line breaks.
  7. Syntax Highlighting and Themes: Customizable syntax highlighting and color themes for JSON. Highlight syntax for easier understanding of the structure.
  8. Error Handling and Suggestions: Provide error messages and suggestions for fixing invalid JSON.
  9. JSON Minification: Remove unnecessary whitespace and reduce JSON size.
  10. Red/Write JSON: Read JSON data from local files, URLs, or clipboard. Write JSON data to files in various formats.
  11. JSON Templating: Create and save reusable JSON templates for specific data structures.
  12. JSON Formatting: Format JSON data to improve readability.

Whether it's populating UI components with remote data, managing application settings, or storing user preferences, JSON usage in Flutter empowers developers to efficiently create dynamic and responsive applications that harness the power of structured data exchange. The below list of Dart & Flutter JSON packages can help you add the above mentioned features in your Flutter app.


deep_pick
Dart 3 compatible 👍 144
Maintenance Status: Good

Simplifies manual JSON parsing with a type-safe API. No dynamic, no manual casting. Flexible inputs types, fixed output types. Useful parsing error messages

flutter_json_view Card Image
flutter_json_view
Dart 3 compatible 👍 127
Maintenance Status: Good

Displaying json models in a Flutter widget with customization.

xml2json
Dart 3 compatible 👍 116
Maintenance Status: Good

An XML to JSON conversion package. Supports Badgerfish, GData, OpenRally and Parker conversions.

json_path
Dart 3 compatible 👍 105
Maintenance Status: Good

Implementation of RFC 9535 - JSONPath: Query Expressions for JSON. Reads and writes values in parsed JSON objects using queries like `$.store.book[2].price`.

json
Dart 3 compatible 👍 86
Maintenance Status: Good

Easy encoding and decoding of JSON maps (maps of type `Map`). Uses a macro that auto-generates a `fromJson` decoding constructor and a `toJson` encoding method.

geojson_vi Card Image
geojson_vi
Dart 3 compatible 👍 58
Maintenance Status: Good

An Open-Source Dart and Flutter Library for Efficiently Handling GeoJSON Data in Compliance with RFC 7946

japx
Dart 3 compatible 👍 42
Maintenance Status: Good

Lightweight parser for the JSON:API (jsonapi.org) structure.

json_schema
Dart 3 compatible 👍 30
Maintenance Status: Good

JSON Schema implementation in Dart

ovo
Dart 3 compatible 👍 4
Maintenance Status: Good

OvO is a Dart-first schema declaration and validation library.

crimson
Dart 3 compatible 👍 117
Maintenance Status: Average

Fast, efficient and easy-to-use JSON parser and serializer for Dart.

colored_json Card Image
colored_json
Dart 3 compatible 👍 25
Maintenance Status: Average

A package that converts JSON string into a customizable flutter widget.

canonical_json
Dart 3 compatible 👍 10
Maintenance Status: Average

Encoder and decoder for a canonical JSON format, useful when cryptographically hashing or signing JSON objects.

typed_json
Dart 3 compatible 👍 2
Maintenance Status: Average

A library intended to bring manual JSON serialization to the Dart projects of all scales.

geojson
Dart 3 compatible 👍 61
Maintenance Status: Poor

Utilities to work with geojson data. Parser with a reactive api, search and geofencing

json_data_explorer
Dart 3 compatible 👍 26
Maintenance Status: Poor

A highly customizable widget to render and interact with JSON objects.

json_patch
Dart 3 compatible 👍 22
Maintenance Status: Poor

Pure Dart utility package for the JSON Patch standard. Can apply patch operations as well as perform a diff algorithm on JSON-like objects.

json_editor
Dart 3 compatible 👍 22
Maintenance Status: Poor

A json editor on flutter.

flutter_json_viewer
Dart 3 compatible 👍 22
Maintenance Status: Poor

A Json viewer widget for flutter. Shows json data in an extensible list. Makes data readable on the phone easily.

safemap
Dart 3 compatible 👍 11
Maintenance Status: Poor

Safely get value with Type from JSON map. Will return null value when value was wrong.

flutter_json_widget
👍 30
Maintenance Status: Poor

A Json viewer widget for flutter. Shows json data in an extensible list. Makes data readable on the phone easily.

gson
👍 14
Maintenance Status: Poor

Parses and encodes the json generated by GSON (Can parse minecraft's json)