Skip to content

fix(query): preserve JSON integer precision - #69

Open
efegokdemir wants to merge 1 commit into
Basekick-Labs:mainfrom
efegokdemir:efe/query-json-number-precision
Open

efegokdemir wants to merge 1 commit into
Basekick-Labs:mainfrom
efegokdemir:efe/query-json-number-precision

Conversation

@efegokdemir

Copy link
Copy Markdown
Contributor

JSON query responses are decoded into float64, which rounds integer values above 2^53 before arcli prints or exports them. QueryJSON now keeps JSON numbers as json.Number, so JSON, CSV and table output retain the value Arc returned. Regression tests cover all three formats and confirm that trailing JSON values are still rejected. Verified with go test -race ./..., go vet ./..., go build ./..., gofmt -l . and git diff --check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant