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

Handle different json primitives #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

XF-FW
Copy link

@XF-FW XF-FW commented Mar 25, 2022

Fixes #8

Fairly simple PR. Tested lightly.

Breaks backwards compatibility for values that match a json primitive. A few examples:

  • When inputting 4, what would be a "4" is now 4
  • When inputting 4.2, what would be a "4.2" is now 4.2
  • When inputting null, what would be a "null" is now null
  • When inputting true, what would be a "true" is now true
  • When inputting "quoted string", what would be a "\"quoted_string\"" is now "quoted_string"
  • When inputting some other random string, there's no change. The result will stay "some other random string" .

Personally, I would like to see it merged, since I'm using this package in a project I'm developing and I'm pretty happy with it!
Of course, I can use my fork in the meantime.
Let me know if there's anything else I can do.

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.

Forced cast to string type
1 participant