0

How would I parse this multi-level JSON to get title?

{"query":{"search":[{"ns":0,"title":"Getfenv"}]}}
2
  • 4
    query.search[0].title Commented Jul 17, 2015 at 21:55
  • 1
    like you would any other multi-level object/array in JS. just because it's json doesn't means it's magically something other than javascript. the js in json stands for (j)ava(s)cript, after all... Commented Jul 17, 2015 at 21:56

1 Answer 1

1
obj.query.search[0].title

you can try out this

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.