detect-json-style:查找不同 JSON 格式的表格数据

时间:2021-07-07 15:31:30
【文件属性】:
文件名称:detect-json-style:查找不同 JSON 格式的表格数据
文件大小:5KB
文件格式:ZIP
更新时间:2021-07-07 15:31:30
JavaScript 检测-json-style 视窗 Mac/Linux 从字符串的第一个 peek 块中检测 JSON 类型。 它检测以下样式 嵌套在对象中的*对象数组,例如{"rows": [{"a": 1}, ..] 数组对象数组[{"a": 1}...] 多行JSON 对象在彼此之后{"a: 1"}{"a": 2} (可以是 ndjson) 用法 var detectJSON = require ( 'detect-json-style' ) var json = detectJSON ( '{"rows": [{"a": 1}, {"a": 2}, {"a":' ) // json -> {style: 'object', selector: 'rows.*'} 与peek-stream和JSONStream一起使用效果JSONStream 。 selector 属性与JSONStr
【文件预览】:
detect-json-style-master
----.gitignore(24B)
----package.json(604B)
----collaborators.md(343B)
----.travis.yml(38B)
----index.js(5KB)
----test.js(3KB)
----appveyor.yml(436B)
----readme.md(1KB)

网友评论