Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SQLLINE-83] JSON Outputformat support #84

Closed
wants to merge 1 commit into from

Conversation

snuyanzin
Copy link
Collaborator

@snuyanzin snuyanzin commented Jul 25, 2018

The PR offers implementation for #83

  1. JSON output format implementation including special symbols escaping based on [1] and [2].
  2. Test for !set outputformat json
  3. Documentation updates including example
  4. Misprint fix for 0: jdbc:oracle:thin:@localhost:1521:mydb> SELECT * FROM COMPANY where ; was missed

[1] http://json.org
[2] https://docs.microsoft.com/en-us/sql/relational-databases/json/how-for-json-escapes-special-characters-and-control-characters-sql-server?view=sql-server-2017

@julianhyde
Copy link
Owner

Merged as 2ba89a8; thanks @snuyanzin!

@julianhyde julianhyde closed this Jul 26, 2018
@julianhyde
Copy link
Owner

I made a small fix: boolean values are now output in JSON as 'true' and 'false', not 'TRUE' and 'FALSE' as previously.

@snuyanzin
Copy link
Collaborator Author

Yes you are right
thank you for pointing this

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.

2 participants