Skip to content

Incorrect data encoded in json when numeric support is enabled #17

@minhaajk

Description

@minhaajk

Hello,

While using this library, I found a bug which I am reporting as below

Value like 99921-58-10-7 is encoded as 99921 in json

Input XML

<?xml version="1.0"?>
<Book>
	<name>Sample Book Name</name>
	<author>New Author</author>
	<ISBN>99921-58-10-7</ISBN>
	<price>102.50</price>
</Book>

Output JSON

{
    "Book": {
        "name": "Sample Book Name",
        "author": "New Author",
        "ISBN": 99921,
        "price": 102.5
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions