Tuesday, December 1, 2009

[jQuery] Re: parsing big JSON file

hi,

i dont think there is any way (clientside) to load the json file
partially. it will always get downloaded and loaded into memory fully
but you can of course copy your needed values into another object/
structure right after that and discard the huge original json output.

if you really just need some values out of a really big json file you
should think about implementing some kind of filter server-side. to
let the client download 100mb just for a bunch of data isnt really
viable anyways ;)

dominik

On 1 Dez., 09:44, km <srikrishnamo...@gmail.com> wrote:
> Hi all,
>
> I am currently using $.getJSON to load a  big JSON format file (100MB).
> So is there a way to selectively parse a few fields of the JSON file so that
> the full file doesnt get loaded in memory ?
> In summary i am looking for parsing a few keys in the JSON file and fetch
> those values only to display on the webpage.
>
> any ideas ?
> thanks,
>
> regards
> Krishna

No comments: