Search packages, repositories and app categories

flutter_json_viewer cover
Package detailsv1.0.1

flutter_json_viewer

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

AndroidiOSWebmacOSWindowsLinux
30-day downloads
7.7K
Likes
22
Pub points
140

Install package

flutter pub add flutter_json_viewer

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter widget that displays JSON data in a readable, expandable list format. Designed for easy visualization of JSON on mobile and web platforms, it enhances data inspection during development or debugging. The viewer supports interactive expansion and collapse of nested structures, improving readability on small screens. It integrates seamlessly into Flutter apps and is suitable for developers who need quick access to structured data. The package is open-source and actively maintained.

Use cases

  • Debugging API responses
  • Inspecting configuration files
  • Displaying JSON logs in apps
  • Testing data structures
  • Visualizing nested JSON data

Key features

  • Expandable JSON tree view
  • Responsive design for all platforms
  • Easy integration with Flutter
  • Supports nested JSON objects
  • Open-source and community-driven

Suitable for

  • Developers debugging APIs
  • Frontend engineers testing data
  • Mobile app testers
  • Educational projects involving JSON
  • UI designers reviewing data layouts

Considerations

  • May impact performance with very large JSON files
  • Limited customization options for styling
  • No built-in search functionality
  • Best suited for small to medium-sized JSON data
  • Requires manual updates when new features are added

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

flutter_json_viewer

A Json viewer widget for flutter. Updated with null safety and added support for Array in the root level.

Forked from flutter_json_widget

Using the library

The /example/ folder in the GitHub repo

contains a full Flutter app with demo examples.

Use this package as a library on Dart dev

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:

flutter_json_viewer: ^1.0.1

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:flutter_json_viewer/flutter_json_viewer.dart';

4. Show it

Container(
    child: JsonViewer(jsonObj)
)

Demo

Demo

Categories

Source repository

Projects using this package