Descriptionjson: add struct tag option to wrap literals in strings
Since JavaScript doesn't have [u]int64 types, some JSON APIs
encode such types as strings to avoid losing precision.
This adds a new struct tag option ",string" to cause
fields to be wrapped in JSON strings on encoding
and unwrapped from strings when decoding.
Patch Set 1 #Patch Set 2 : diff -r 7860bad4407f https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 7860bad4407f https://go.googlecode.com/hg/ #Patch Set 4 : diff -r f8e4df3c4048 https://go.googlecode.com/hg/ #Patch Set 5 : diff -r f8e4df3c4048 https://go.googlecode.com/hg/ #
Total comments: 11
Patch Set 6 : diff -r e33629f044a8 https://go.googlecode.com/hg #Patch Set 7 : diff -r e33629f044a8 https://go.googlecode.com/hg #Patch Set 8 : diff -r 73c091a3fc96 https://go.googlecode.com/hg #
MessagesTotal messages: 18
|