I want to write an algorithm to parse JSON of a unknown length using python. The highly nested JSON object contains comments to a post and some "comment threads" go longer than others so the resulting nested dictionaries should be of varying length. I probably need some kind of recursive algorithm to walk down each "branch" of the JSON tree but don't know where to even start with this. Can someone just point me in the right direction?
Asked
Active
Viewed 136 times
0
-
If this is an actual use case question, see the dupe, don't reinvent the wheel. If this is an assignment question, then this is not going to be reopened. – cs95 Nov 07 '17 at 04:09
-
im asking how to parse JSON in python not javascript? – e1v1s Nov 07 '17 at 04:13
-
Sorry, should be right, now. – cs95 Nov 07 '17 at 04:14