[{"data":1,"prerenderedAt":148},["ShallowReactive",2],{"project-10012850":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":27,"sentiment":28,"stance_mix":29,"scored_comments":33,"aspects":34,"strip":37,"post_text":28,"what":38,"said":60,"maker_in_thread":90,"shape":96,"grid":99,"attempts":111,"same_week":112,"maker_shows":32,"maker_hidden":141,"reader_version":142,"card":143},"10012850","j","Json parser in 20 lines of bash","title","Show HN: Json parser in 20 lines of bash","https:\u002F\u002Fgithub.com\u002Fizabera\u002Fj","github.com","izabera",1438808601,2015,13,5,1715,2565,67,"shown","languages","json parser","cli",[21,24,25,26],"bash","json","field extraction","quiet",null,{"positive":30,"neutral":31,"mixed":31,"critical":32},1,0,2,3,{"idea":35,"docs":36},{"positive":31,"critical":30},{"positive":30,"critical":30},[30,31,30,31,15],{"problem":39,"audience":28,"pricing":28,"motivation":46,"time_to_build":28,"stack":50,"openness":58,"stage":59,"team_size":59},{"value":40,"source":41,"evidence":42},"Parsing JSON in bash, which has no recursive data structures.","maker",[43],{"id":44,"by":11,"text":45},"10015028","the 20 lines thing... :P it was a challenge to write, bash has nothing that looks like a recursive data structure. it's not really meant to be useful ^^",{"value":47,"source":41,"evidence":48},"A challenge to write a parser in bash; not meant to be useful.",[49],{"id":44,"by":11,"text":45},[51],{"value":24,"source":41,"evidence":52},[53,54],{"id":44,"by":11,"text":45},{"id":55,"by":56,"text":57},"10019943","anonfunction","Looking at the source[1] it stands at 94 lines. There's also no example of field extraction in the readme even though it's mentioned that there is an example below in the…","open_source","unknown",{"praise":61,"objections":62,"requests":79,"questions":80,"alternatives":85},[],[63,71,75],{"value":64,"source":65,"evidence":66},"Not practically useful compared to jq.","commenter",[67],{"id":68,"by":69,"text":70},"10014923","stephenr","Its an interesting idea but what does this achieve that jq [1] doesn't already do, and likely faster? [1] http:\u002F\u002Fstedolan.github.io\u002Fjq\u002F",{"value":72,"source":65,"evidence":73},"Source is 94 lines, not 20 as claimed.",[74],{"id":55,"by":56,"text":57},{"value":76,"source":65,"evidence":77},"README lacked a field extraction example.",[78],{"id":55,"by":56,"text":57},[],[81],{"value":82,"source":65,"evidence":83},"What does this achieve that jq does not already do?",[84],{"id":68,"by":69,"text":70},[86],{"value":87,"source":65,"evidence":88},"jq",[89],{"id":68,"by":69,"text":70},{"comments":32,"answered":30,"key":91},[92,93],{"id":44,"text":45},{"id":94,"text":95},"10022161","the parser is 20 lines. then there's a function named print, then there's a for loop that extracts the fields. the last two lines of the readme are the example you're looking…",{"commenters":33,"max_depth":15,"maker_replies":32,"first_comment_mins":97,"lifespan_hours":98},580,77,[100,102,104,106,108],[68,31,30,101,69,31],"project\u002Fcritical\u002Fidea",[44,31,31,103,11,30],"project\u002Fneutral\u002Fidea",[55,31,30,105,56,31],"project\u002Fcritical\u002Fdocs",[94,31,31,107,11,30],"project\u002Fneutral\u002Fdocs",[109,31,15,110,56,31],"10029306","maker\u002Fpositive\u002Fdocs",[],[113,118,123,128,132,137],{"id":114,"name":115,"points":116,"category":117},"10004678","whoami.filippo.io",836,"security_privacy",{"id":119,"name":120,"points":121,"category":122},"10008637","ImagePlay",451,"creative",{"id":124,"name":125,"points":126,"category":127},"10005415","JAWS",375,"dev_tools",{"id":129,"name":130,"points":131,"category":122},"9990160","Iconic Patent Posters",241,{"id":133,"name":134,"points":135,"category":136},"10012499","Raise Your Flag",151,"productivity",{"id":138,"name":139,"points":140,"category":127},"9975022","Mycli",106,false,"v2",{"id":144,"name":5,"line":6,"ai":141,"cat":20,"year":13,"points":14,"comments":15,"rec":27,"s":28,"top":18,"kw":145,"maker":11,"domain":10,"tier":19,"attempts":31,"strip":146,"url":9,"mix":147,"praise":-1,"objection":64,"sub":21},10012850,[21,24,25,26],"10105",[30,31,31,32],1794036534201]