PDA

View Full Version : How to increase the JSON object max size



extJSStartup
27 Nov 2009, 11:52 AM
Hi,

I have a JSON object which is very long, hence the Ext.data.Store returns a null JSON.
How can i increase the size limit of JSON in response?

Regards,
Supriti Sharma

Animal
27 Nov 2009, 11:56 AM
There's no such thing as a JSON object.

JSON is textual.

Do you have a string which you are evaluating?

If you get a null result, then there's a syntax error in it. JSLINT it.

extJSStartup
28 Nov 2009, 1:13 AM
Hi,

Yes its JSON text only. The error that i get is "missing } in property list" but there is nothing wrong in JSON text syntax.

JSON text:

{'techFeatData':[{'feature_id':'5540','feature_name':'ABC'}, {'feature_id':'686','feature_name':'ABCD'},{'feature_id':'1062','feature_name':'ABCE'}, {'feature_id':'6450','feature_name':'ABCF'}, {'feature_id':'8344','feature_name':'ABCG'},
---------------------- Much More data here---------------------------------------
{'feature_id':'7882','feature_name':'ABCH'}]}

Regards,
Supriti Sharma

tryanDLS
28 Nov 2009, 8:31 AM
Is that what you think or what you verified by running the full text thru jsonlint.com?

hendricd
28 Nov 2009, 8:49 AM
@extJSStartup -- Some recommendations:

- Adjust your quoted output to dbl-quotes { "member " : "value" }
- Escape all nested single quotes for consumption { "name" : "O\'Brian" }
- Escape CRLF sequences in your JSON stream to \n (or just remove them altogether)

Simply changing the quotation strategy might yield more clues as to what is really wrong. :-?

Warning: Safari/Mac has a limited stack size. An unreasonably-large JSON response will crash that browser.


Hi,

Yes its JSON text only. The error that i get is "missing } in property list" but there is nothing wrong in JSON text syntax.

JSON text:

{'techFeatData':[{'feature_id':'5540','feature_name':'ABC'}, {'feature_id':'686','feature_name':'ABCD'},{'feature_id':'1062','feature_name':'ABCE'}, {'feature_id':'6450','feature_name':'ABCF'}, {'feature_id':'8344','feature_name':'ABCG'},
---------------------- Much More data here---------------------------------------
{'feature_id':'7882','feature_name':'ABCH'}]}

Regards,
Supriti Sharma