[json-lib-user] quotes in value string when special characters in value
Brought to you by:
aalmiray
From: Arash A. <ara...@re...> - 2007-11-08 13:59:26
|
Hi Now I have the following problem: Assume my JSON Object looks like this: {'fields':[{"name":"Test1","value":"{Value1}"}, {"name":"Test2","value":"Value2"}, ]} when I convert it to a JSONArray and then try to get the first value by using JSONObject.getString( "value" ) the value is "{{{Value1}}}" (with the quotes sorrounding it!!!) for Value2 it works perfectly (no quotes) the same happens for value such as [Value1] (gets converted to "[Value1]") any ideas how I can change this behaviour? Please help. greetings, arash |