10000 GitHub - aviate-labs/json.mo at v0.2.1
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

aviate-labs/json.mo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON

JSON

Example

import JSON "mo:json/JSON";
import Debug "mo:base/Debug";

let obj : JSON.JSON = #Object([]);
Debug.print(JSON.show(obj));
// {}

Debug.print(JSON.show(#Object([("username", #String("di-wu"))])));
// {"username": "di-wu"}

Debug.print(JSON.show(#Object([
    ("name", #Object([
        ("firstName", #String("quint"))
    ])),
    ("username", #String("di-wu"))
])));
// {"name": {"firstName": "quint"}, "username": "di-wu"}

About

JSON for Motoko

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0