>From the docs I see you can do this:

$ mojo get https://api.metacpan.org/v0/author/SRI /name
Sebastian Riedel


So therefore I thought it reasonable to do this:

$ mojo get '
http://localhost:5984/rtc/_design/lookup/_view/beacon?key=[30024,36068]'
/rows/0/value/parent


But I get no response.  The whole response is this:

$ mojo get '
http://localhost:5984/rtc/_design/lookup/_view/beacon?key=[30024,36068]'

{"total_rows":1,"offset":0,"rows":[
{"id":"ab7093f9bbc349a12c52b449c0002b10","key":[30024,36068],"value":{"_id":"ab7093f9bbc349a12c52b449c0002b10","_rev":"7-2834d595eaed5cab4e92695556b89371","type":"beacon","major":30024,"minor":36068,"internal":{"Device
Name":"Estimote Beacon","Broadcasting Power":"Weak (-12 dBm)","Advertising
Interval":"200 ms","Battery Level":"29%","Operating System":"Estimote OS
A1.9","Hardware
Revision":"D3.3"},"parent":"ab7093f9bbc349a12c52b449c000324e"}}
]}


It's not formatted well.  If I run it thru jsonlint.com and put it in a
public/test.json file I can then do:

$ mojo get 'http://localhost:3000/test.json' /rows/0/value/parent
ab7093f9bbc349a12c52b449c000324e


The JSON response that doesn't parse well is valid JSON, just minified.  Is
there something that I'm doing wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to