v1.0.1flutter_json_viewer
A Json viewer widget for flutter. Shows json data in an extensible list. Makes data readable on the phone easily.
22Likes 5.7K30-day downloads140Pub points
AndroidiOSWebmacOSWindowsLinux
A widget to show json object
{"sdk":"flutter"}{"sdk":"flutter"}English project snapshot. Visit GitHub for the latest content.
A Json viewer widget for flutter. Updated with null safety and added support for Array in the root level.
Forked from flutter_json_widget
The /example/ folder in the GitHub repo
contains a full Flutter app with demo examples.
Add this to your package's pubspec.yaml file:
dependencies:
flutter_json_viewer: ^1.0.1
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.
Now in your Dart code, you can use:
import 'package:flutter_json_viewer/flutter_json_viewer.dart';
Container(
child: JsonViewer(jsonObj)
)
Demo