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

Using the same types in Json structure #5

Open
Neyasru opened this issue Jul 29, 2020 · 0 comments
Open

Using the same types in Json structure #5

Neyasru opened this issue Jul 29, 2020 · 0 comments

Comments

@Neyasru
Copy link

Neyasru commented Jul 29, 2020

Hello Fuzzysteve,

I was taking a look at your market API, and how useful it could be. I'm using it in Go Land, and the parser of JSON in this language have some problems where the same element have different types.

For example:
weightedAverage is a string, but when it's empty you send a 0 which is a number.

It would be nice is you send the same type all the time.

"weightedAverage"=>$details[0]?$details[0]:0,

Thanks for your time, and all the tools you are developing.

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

1 participant