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
Comment #1
7wonders CreditAttribution: 7wonders commentedhttp://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.
Comment #2
twistor CreditAttribution: twistor commentedComment #3
sk33lz CreditAttribution: sk33lz commentedI got a JSON feed to work without a top level context with this context.
$.[]
Comment #4
johnnydarkko CreditAttribution: johnnydarkko commentedThank you sk33lz! Just the answer I was looking for!
Comment #5
twistor CreditAttribution: twistor as a volunteer commentedWhat the OP was looking for was:
$.*.global_topic