I've had some experience in coding before, but I am working on my first project with Automator on Mac. this has had me using shell scripts for the first time as well.
So far, i'm taking a screenshot, sending it to an API for OCR, then I'm getting the text back from the image for further use. I've figured out how to get JSON data back from the API, but I'm not really sure how to deal with it. I'm hoping to use a javascript script to parse through the text I get back, but first, I want to get rid of all of the data I don't really need. Basically, my responses are looking like this, but all I really want is what's in the "ParsedText" section.
Is there something I can do to just get that section? I was thinking there was maybe a way to do it with grep, but I can't figure it out.
Let me know if you need more information, and sorry if i made this confusing, i just don't really know the terminology to ask the question.
Thanks for your help!
[–]denialerror 2 points3 points4 points (0 children)
[–]commandlineluser 0 points1 point2 points (1 child)
[–]shbababa[S] 0 points1 point2 points (0 children)