Hi Lokesh

The 'problem' that you talk about isn't really a problem. Since the JSON
specification does not say what is to be done for repeated names, it is up
to the implementation to decide. What is your requirement for handling
repeated names?

Jayanth


On Fri, Mar 21, 2014 at 2:30 PM, lokesh bobby <lokeshbob...@yahoo.com>wrote:

> Hi Noufal,
>
> Thanks for your reply. I am not looking for loading the JSON file. There
> is a limitation in it. Go thru the links
>
> http://docs.python.org/2/library/json.html#repeated-names-within-an-object
>
> http://docs.python.org/3.2/library/json.html#repeated-names-within-an-object
>
> In order to get rid of that problem, I am looking for some JSON stream
> parsers.
>
> Thanks,
> Lokesh.
>
>
>
> On Friday, 21 March 2014 2:09 PM, Noufal Ibrahim KV <
> nou...@nibrahim.net.in> wrote:
>
> On Fri, Mar 21 2014, lokesh bobby wrote:
>
>
> > Hi ALL,
> >
> > Can you share your thoughts on how to parse a JSON file by using
> > python?
>
> import json
>
> with open("data.json") as f:
>      json.load(f)
>
>
> [...]
>
>
> --
> Cordially,
> Noufal
> http://nibrahim.net.in
> _______________________________________________
> BangPypers mailing list
> BangPypers@python.org
> https://mail.python.org/mailman/listinfo/bangpypers
>
_______________________________________________
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers

Reply via email to