Hi!
I'm trying to traslate shell script bash to pyhton. I use jq to extract fileds of json response but with jsonresponse I can't do it with python. Someone knows? My bash line
The json response is:
I'm trying to traslate shell script bash to pyhton. I use jq to extract fileds of json response but with jsonresponse I can't do it with python. Someone knows? My bash line
jq -r '.search_objects[].title' fileI'm trying with
print(jsonResponse["search_objects"]["title"])But fails :-(
The json response is:
{"search_objects":[{"id":"wzyn2v2k22j5","title":"juego party and co","description":"totalmente nuevo,nunca se ha usado ","distance":497.0,"images":[{"original":"http://cdn.wallapop.com/imag es/10420/90/wu/__/c10420p545727668/i1624356241.jpg?pictureSize=W1024","xsmall":"http://cdn.wallapop.com/images/10420/90/wu/__/c10420p545727668/i1624356241.jpg?pictureSize=W320","small":"htt p://cdn.wallapop.com/images/10420/90/wu/__/c10420p545727668/i1624356241.jpg?pictureSize=W320","large":"http://cdn.wallapop.com/images/10420/90/wu/__/c10420p545727668/i1624356241.jpg?picture Size=W800","medium":"http://cdn.wallapop.com/images/10420/90/wu/__/c10420p545727668/i1624356241.jpg?pictureSize=W640","xlarge":"http://cdn.wallapop.com/images/10420/90/wu/__/c10420p54572766 8/i1624356241.jpg?pictureSize=W1024","original_width":1200,"original_height":554}],"user":{"id":"4w671w9yp86x","micro_name":"sonia m.","image":{"original":"http://cdn.wallapop.com/images/13 /2v/lu/__/c13p174019176/i1600856774.jpg?pictureSize=W1024","xsmall":