Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highly nested Json #20

Open
ehmo opened this issue Jul 11, 2016 · 1 comment
Open

Highly nested Json #20

ehmo opened this issue Jul 11, 2016 · 1 comment

Comments

@ehmo
Copy link

ehmo commented Jul 11, 2016

Hi,

I've a highly nested Json that I want to iterate through. Here is an example.

[{"a":[{"3":5},{"2":3},{"b":[{"n":2},{"b":"c"},{"c":[{"d":1},{"u":2}]}]}]},{"a":[{"3":5},{"2":3},{"b":[{"n":2},{"b":"c"},{"c":[{"d":1},{"f":[[2,3,4,{"tik":1}],3,5]}]}]}]},{"a":[{"3":5},{"2":3},{"b":[{"n":2},{"b":"c"},{"c":[{"d":1},{"i":2}]}]}]}]

Ho do I get to the tik key?

Also probably an unrelated question, is there a way how to search this highly nested Json based on key or value?

Thank you

@aimof
Copy link

aimof commented Apr 12, 2019

@ehmo

Hi, ehmo!!

Do you remember this issue?
I've just finished to support this issue on my forked repo.

You can find your "tik" key.
https://github.com/aimof/jason/blob/fbb734d7ff248e01beea369ac2cc01b945c185aa/jason_highly_nested_test.go#L69
https://github.com/aimof/jason/blob/fbb734d7ff248e01beea369ac2cc01b945c185aa/jason_highly_nested_test.go#L120

Please check my srouce code.
The way of parsing is changed but it has compatibility.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants