Skip to content

inspecting and selecting large json files #415

Open
@c-nv-s

Description

@c-nv-s

Describe the bug
I was preparing to copy a json file to sqlite (similar to https://sq.io/docs/cookbook#import-json-array-to-database ) but could not because I encountered some buggy behaviour.
sample data: https://github.com/lutangar/cities.json/raw/master/cities.json

# use jq to check it is valid json
cat cities.json | jq '.'

To Reproduce

$ sq add ./cities.json
$ sq inspect @cities
sq: failed to inspect @cities: invalid JSON: additional input expected

$ sq '@cities | .[]'
sq: invalid JSON: additional input expected

Expected behavior

Not actually sure to be honest, but definitely not what was received haha

sq version

"version": "v0.47.2",
"commit": "135318f",
"timestamp": "2024-01-30T05:13:40Z",
"latest_version": "v0.48.1",

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions