json_viewer 0.0.1

Flutter Android iOS

flutter json tree viewer.

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:

0
likes
80
pub points
26%
popularity

flutter json tree viewer.

Homepage

Documentation

API reference

Uploader

namezzd@gmail.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on json_viewer