Description[release-branch.r60] json: add struct tag option to wrap literals in strings
««« CL 4918051 / ba6daf799367
json: 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.
R=rsc, gustavo
CC=golang-dev
http://codereview.appspot.com/4918051
»»»
Patch Set 1 #Patch Set 2 : diff -r d5e97874fe84 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r d5e97874fe84 https://go.googlecode.com/hg/ #
MessagesTotal messages: 3
|