Skip to content

hizzd/json_viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json_viewer

flutter json tree viewer.
flutter的json树形浏览器.

example

Usage:

import 'package:json_viewer/json_viewer.dart';
import 'dart:convert';

@override
Widget build(BuildContext context) {
    var obj = json.decode('{"menu": {'
        '  "id": 123456,'
        '  "success": false,'
        '  "value": "File",'
        '  "popup": {'
        '    "menuitem": ['
        '      {"value": "New", "onclick": "CreateNewDoc()"},'
        '      {"value": "Open", "onclick": "OpenDoc()"},'
        '      {"value": "Close", "onclick": "CloseDoc()"}'
        '    ]'
        '  },'
        '  "popup2": {'
        '    "menuitem": ['
        '      {"value": "New", "onclick": "CreateNewDoc()"},'
        '      {"value": "Open", "onclick": "OpenDoc()"},'
        '      {"value": "Close", "onclick": "CloseDoc()"}'
        '    ]'
        '  }'
        '}}');
    return JsonViewerRoot(jsonObj: obj);
}

Images:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published