Skip to content

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