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

Hex number in JSON #8

Closed
digglife opened this issue Dec 27, 2021 · 3 comments
Closed

Hex number in JSON #8

digglife opened this issue Dec 27, 2021 · 3 comments

Comments

@digglife
Copy link

First of all, thanks very much for the great tool! It's really convenient to install pkgs with Remote Package Installer.

I'm trying to write a client recently and I found that the JSON body returned by the server contains hex number like 0x80990019, which is not a valid number type in JSON specification. So by default, it's not parsable by command line like jq or standard library of Golang or Python etc. Could I ask if there is any particular reason for using raw hex number instead of float?

Thank you!

@flatz
Copy link
Owner

flatz commented Dec 27, 2021

Hi.
There was no reason to use raw hex number, it's me who forgot to add quotes around it. It's no longer maintained, so you can fix it by yourself. :)
Thanks anyway!

@digglife
Copy link
Author

@flatz Understood. Thank you for replying!

@Gkiokan
Copy link

Gkiokan commented Jan 9, 2022

@digglife Just parse it as JSON5 and you are fine.

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

3 participants