henu/bigjson

Retrieve actual object out of bigjson.obj.Object

Opened this issue · 3 comments

Zia- commented

Hello,

While reading a json I want to get the whole object for a given loop in python dictionary datatype. At the moment, it is in bigjson.obj.Object form. Is there a method or something to convert it into something I can use. Since I don't know what each keys etc. could be in that object I can't generate a dictionary using some logic or loop.

Thanks beforehand and enjoying the package so far.

There's a to_python() method on the object that worked for me.

Running into the exact same issue @Zia-
Were you able to resolve?

Not sure where the to_python function is from that @olumidesan is referring to, I Googled and it's Django specific function?

I'm just trying to parse a large JSON File...

It's here in this library:

def to_python(self):