jsontree 0.1.1+1 copy "jsontree: ^0.1.1+1" to clipboard
jsontree: ^0.1.1+1 copied to clipboard

outdated

Statically typed JSON tree. The tree can contain JSON-compatible atomic types and nothing else.

example/example.dart

import 'package:jsontree/jsontree.dart';

void main() {
  final tree = {
    "planet": "Mars".jsonNode,
    "diameter": 6779.jsonNode,
    "satellites": ["Phobos".jsonNode, "Deimos".jsonNode].jsonNode
  }.jsonNode;

  print(tree.toJsonCode());
  // {"planet":"Mars","diameter":6779,"satellites":["Phobos","Deimos"]}
}
0
likes
0
points
18
downloads

Publisher

verified publisherrevercode.com

Weekly Downloads

Statically typed JSON tree. The tree can contain JSON-compatible atomic types and nothing else.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on jsontree