Could I get input on how I'd get fields out of this?

I've tried $.global_topic.* as the context but that isn't working.

[
{
"global_topic": {
"short_url": "",
"created_at": "",
"body": "",
"title": "",
"updated_at": "",
"tags": [

],
"posts": [

],
"tuid": "",
"user": {
"long_name": ""
}
}
},
{
"global_topic": {
"short_url": "",
"created_at": "",
"body": "",
"title": "",
"updated_at": "",
"tags": [

],
"posts": [

],
"tuid": "",
"user": {
"long_name": ""
}
}
}
]

Comments

7wonders’s picture

http://jsonviewer.stack.hu/

Try this tool for viewing json in a nice format. Try $..* for context and then global_topic.short_url to get the short_url.

Im a newb on jsonpath also so dont expect miracles.

twistor’s picture

Assigned: Unassigned » mitchell
sk33lz’s picture

I got a JSON feed to work without a top level context with this context.

$.[]

johnnydarkko’s picture

Thank you sk33lz! Just the answer I was looking for!

twistor’s picture

Assigned: mitchell » Unassigned
Issue summary: View changes
Status: Active » Fixed

What the OP was looking for was:
$.*.global_topic

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.