Added JSON support. (0.28.0)
This commit is contained in:
parent
0fa6d56c14
commit
afb0e8cd3a
16 changed files with 521 additions and 3 deletions
53
examples/data/complex.json
Normal file
53
examples/data/complex.json
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{
|
||||
"project": {
|
||||
"name": "Fun",
|
||||
"version": "0.27.2",
|
||||
"website": "https://fun-lang.xyz",
|
||||
"license": {
|
||||
"name": "Apache-2.0",
|
||||
"url": "https://opensource.org/license/apache-2-0"
|
||||
}
|
||||
},
|
||||
"features": {
|
||||
"enabled": ["arrays", "maps", "json", "pcsc"],
|
||||
"experimental": {
|
||||
"repl": true,
|
||||
"sockets": true,
|
||||
"odbc": false,
|
||||
"notes": null
|
||||
}
|
||||
},
|
||||
"users": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Ada",
|
||||
"roles": ["admin", "math"],
|
||||
"active": true,
|
||||
"score": 99.5,
|
||||
"prefs": {
|
||||
"theme": "dark",
|
||||
"editor": {"tabWidth": 2, "font": "Fira Code"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"name": "Linus",
|
||||
"roles": ["user", "kernel"],
|
||||
"active": false,
|
||||
"score": 88,
|
||||
"prefs": {
|
||||
"theme": "light",
|
||||
"editor": {"tabWidth": 8, "font": "Monospace"}
|
||||
}
|
||||
}
|
||||
],
|
||||
"metrics": {
|
||||
"counters": [0, 1, 1, 2, 3, 5, 8],
|
||||
"latency_ms": {"p50": 1.23, "p90": 3.21, "p99": 12.34},
|
||||
"builds": 1234567890123456789,
|
||||
"last_release_ts": 1732406400000
|
||||
},
|
||||
"matrix": [[1, 2, 3], [4, 5, 6], [7, 8, 9]],
|
||||
"notes": "UTF-8 ✓ – emojis: 🚀🔥",
|
||||
"null_field": null
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue