Skip to content

Added support for JSON number values#3

Open
situokko wants to merge 3 commits into
veracross:masterfrom
situokko:master
Open

Added support for JSON number values#3
situokko wants to merge 3 commits into
veracross:masterfrom
situokko:master

Conversation

@situokko

@situokko situokko commented Feb 1, 2018

Copy link
Copy Markdown

Added support for JSON number values, such as iat, when converting XML->JSON.

Known issues: As IsNumeric() seems to validate numbers inside a string very liberally so that floats '123.567' and formatted decimals '123.9,00' are detected as numbers, while they are not valid in JSON. Could be fixed by switching the test function to something more strict?

@Imran-imtiaz48 Imran-imtiaz48 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generates a JSON-style key-value pair from XML nodes, intelligently wrapping non-numeric values in quotes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants