jsontree 0.3.0 copy "jsontree: ^0.3.0" to clipboard
jsontree: ^0.3.0 copied to clipboard

Statically typed JSON tree. This type-safe tree can contain JSON-compatible objects 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
160
points
20
downloads

Publisher

verified publisherrevercode.com

Weekly Downloads

Statically typed JSON tree. This type-safe tree can contain JSON-compatible objects and nothing else.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

More

Packages that depend on jsontree