Skip to content

Using the same types in Json structure #5

@Neyasru

Description

@Neyasru

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.

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