feat(stdlib): add JSON and CSV product parsers
This commit is contained in:
1 parent
fbe36bcc43
commit
bde6f1d0ba
10 files changed
+942
-8
No files matched your search
@@ -0,0 +1,16 @@
|
||||
---
|
||||
import:
|
||||
json: "std:data/json"
|
||||
---
|
||||
|
||||
## main
|
||||
|
||||
**`对象 = json.解析("{\"a\": 1, \"b\": [true, null, \"说\\\"好\"]}")`**
|
||||
|
||||
**`浮点 = json.解析("[1, 2.5, -3e2, 4E-1, {\"a\": 1.0}, \"x\"]")`**
|
||||
|
||||
**`失败 = json.解析("[1 2]")`**
|
||||
|
||||
**`尾随 = json.解析("1 2")`**
|
||||
|
||||
*[对象.ok, 对象.value.a, 对象.value.b[2], json.格式化(浮点.value), 失败.ok, 失败.code, 尾随.code]*
|
||||
Reference in new issue
Block a user