noborus / trdsql

CLI tool that can execute SQL queries on CSV, LTSV, JSON, YAML and TBLN. Can output to various formats.
https://noborus.github.io/trdsql/
MIT License
1.96k stars 73 forks source link

Avoid mapping to float64 in json #152

Closed noborus closed 3 years ago

noborus commented 3 years ago

Resolves #151

suzuki commented 3 years ago

I ran tdrsql on this branch, it works for me. Thank you for your fix.

[
  {
    "id": 1000000,
    "name": "foo"
  },
  {
    "id": 1000001,
    "name": "bar"
  }
]
 % ./trdsql -ijson "SELECT * FROM ./data.json"
1000000,foo
1000001,bar