Align host json encode/decode with Lean ForeignJSON: refuse OOD integers instead of silent Node distortion; keep decimal-string BigInt author path. Co-authored-by: Cursor <cursoragent@cursor.com>
16 lines
270 B
Markdown
16 lines
270 B
Markdown
---
|
|
markup: occlusion
|
|
title: json V_safe MAX_SAFE roundtrip
|
|
import:
|
|
json: lib/json.mq.md
|
|
---
|
|
|
|
# main
|
|
|
|
**obj = > json.parse text={"n":9007199254740991}**
|
|
**n = > json.get value=`obj` key="n"**
|
|
**out = > json.stringify value=`obj`**
|
|
|
|
> print text=`n`
|
|
> print text=`out`
|