Thanks to visit codestin.com
Credit goes to github.com

Skip to content

In to_json(), maintain the "type" of empty maps and vectors #400

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

Merged
merged 2 commits into from
Feb 3, 2018

Conversation

totalgee
Copy link
Contributor

Issue this pull request references: #399

Changes proposed in this pull request

  • make to_json() with an empty Map, Vector or Dynamic_Object return a similar/compatible type (JSON object or array), rather than "null".
  • include the fix for to_json does not convert null values #381 (to_json() support for null values), so that can also be unit tested.
  • add unit test to validate to_json().

- fix issue ChaiScript#399.
- make to_json() with an empty Map, Vector or Dynamic_Object return a
  similar/compatible type (JSON object or array), rather than "null".
- include the fix for ChaiScript#381 (to_json() support for null values), so
  that can also be unit tested.
@lefticus lefticus merged commit bbaa6ed into ChaiScript:develop Feb 3, 2018
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