easy_json_viewer 1.0.4
easy_json_viewer: ^1.0.4 copied to clipboard
A lightweight and easy-to-use Flutter package for displaying and exploring JSON data visually with expand/collapse, search, and custom themes.
import 'package:easy_json_viewer_example/json_viewer_example.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData.light(),
darkTheme: ThemeData.dark(),
themeMode: ThemeMode.system,
home: const JsonTreeExample());
}
}