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

Decompressed result is not the same as the raw content #6

Open
mightyheptagon opened this issue Sep 30, 2016 · 2 comments
Open

Decompressed result is not the same as the raw content #6

mightyheptagon opened this issue Sep 30, 2016 · 2 comments

Comments

@mightyheptagon
Copy link

Found a case where the decompressed file is not the same as the original raw JSON content.

Case: The value of the key-value pair is a single character such as "N", however when it gets decompressed it was replaced with an another existing key in the JSON object.

@mightyheptagon
Copy link
Author

For instance, the raw content of JSON file looks like:

{
    "name": "James Richard Fallon", 
    "gender": "male", 
    "type": "N",
    "country": "Iceland", 
    "serviceHours": "237",
    "level": "E3",
    "registrationId": "h3a8ihj93hw3kih092", 
    ... <other fields omitted>...
}

When it gets compressed and then decompressed I got the following

{
    "name": "James Richard Fallon", 
    "gender": "male", 
    "type": "registrationId",      <--------------- decompression error found here 
    "country": "Iceland", 
    "serviceHours": "237",
    "level": "E3",
    "registrationId": "h3a8ihj93hw3kih092", 
    ... <other fields omitted>...
}

@JimZeeKing
Copy link

@mightyheptagon I have exactly the same problem, did you find a solution?

JimZeeKing added a commit to JimZeeKing/JSONC that referenced this issue Dec 11, 2018
JimZeeKing added a commit to JimZeeKing/JSONC that referenced this issue Dec 11, 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

No branches or pull requests

2 participants