json - Golang decode map[string]float where float is encoded as string -
Then I am working with an API which provides a Jason object that maps a float to a string Does, however, they encode float as a string.
I know that when a personal float is encoded in the form of a string, you want to say that the strips can be used in the tag:
< Code> item float64 `json:, string" `
I against a interface {}
as the value in the map I'm not thinking of using it, but it only kills me that there is a way to do this.
Example of Playground:
How about using json.Number? Example: No idea, though its best method though ...
Comments
Post a Comment