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

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -