If encoding is in the JSON response, how can you read the JSON to know what encoding to use?
It's a catch 22.
http://en.wikipedia.org/wiki/Catch-22_%28logic%29Also, being restful means that the communication concerns are abstracted over a communication layer (ie: http in you case), and the api concerns is to provides information about the resource.
I think you should use the http headers to specify your encoding. exemple: Content-Type: application/json; charset=utf-8
That's in an ideal world. You don't give much information on your context, so maybe our friend the "real world" can make the final decision different.
JF
On Monday, September 24, 2012 4:33:05 AM UTC-4, Indu wrote: