[json-lib-user] net.sf.json.JSONException: There is a cycle in the hierarchy! - issue.
Brought to you by:
aalmiray
From: Pravin C. <pra...@gm...> - 2011-03-29 12:24:22
|
Hi All, I am using json-lib for converting my java object to json array. I encountered the error "net.sf.json.JSONException: There is a cycle in the hierarchy!" not more often but want to remove it. I am little confused about the statement "*when parsing, JSONObject and JSONArray will check for cycles in the hierarchy, throwing an exception if one is found. You can change this behavior by registering a CycleDetectionStrategy*" in http://json-lib.sourceforge.net/usage.html. i.e. i want to know how to use LENIENT approach for my application or i can Override the method inside *CycleDetectionStrategy *for my usage. Please help Thanking you in advance. -- -------------------------------------------------------------- Thanks & Regards, *Pravin Chikhale* Software Engineer, LinkedIn: http://in.linkedin.com/in/pravinchk/ ================================ |