[json-lib-user] Quick Question on JSON
Brought to you by:
aalmiray
From: Haritha J. <har...@ya...> - 2007-12-11 20:16:43
|
Hi Everyone=0AI have a line of code=0AJSONObject jsonObj =3D JSONObject.fro= mObject( textField, jsonConfig ); =0Awhich produces this JSON string=0A=0A= {"parentId":678,"textFieldId":111,=0A"JSON":=0A"{'sizeWidth':620,'text':'= =93[Winning the Nobel Peace Prize]','positionLeft':20,'style':'left:20px;to= p:100px;width:620px;height:100px;','positionTop':100,'name':'','cssClass':'= ','objectType':'TextObject','sizeHeight':100}"=0A}=0A=0Anow if i want the p= roperty "json" whose value is a string=0A =93[Winning the Nobel Peace=0APri= ze]','positionLeft':20,'style':'left:20px;top:100px;width:620px;height:100p= x;','positionTop':100,'name':'','cssClass':'','objectType':'TextObject','si= zeHeight':100}"=0A=0Ato be converted to a json object .... is there any API= methods i can use.i am unable to locate any.=0A=0Ai.e my output should lo= ok like =0A{"parentId":678,"textFieldId":111,=0A"JSON": this value is not a= string anymore=0A{'sizeWidth':620,'text':'=93[Winning=0Athe Nobel Peace=0A= Prize]','positionLeft':20,'style':'left:20px;top:100px;width:620px;height:1= 00px;','positionTop':100,'name':'','cssClass':'','objectType':'TextObject',= 'sizeHeight':100}=0A}=0A=0AI have a constraint that i need to do this manip= ulation on the jsonObj .=0A=0AThanks=0AHaritha=0A=0A=0A=0A=0A=0A=0A __= ___________________________________________________________________________= _______=0ALooking for last minute shopping deals? =0AFind them fast with Y= ahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?categor= y=3Dshopping |