Parsing JSON with reserved word "name"

Hello,

I apologize for not knowing the correct terminology but I am having trouble parsing the correct data out of a JSON request to the google places API. I can figure out how to extract most items from the JSON results but what I am after is the “name” item. However, name is a reserved entity for use in AppleScript so every result returned is blank.

Is there a way to encapsulate “name” and still be able to use it as search criteria to parse my JSON result s?

You are almost correct. Remove the spaces between the | characters and name so that it reads: |name| of item 1 of ….

1 Like

When I do this and compile the pipes surrounding name are removed.

Scratch that. It was doing it before but is not any longer. Thank you

1 Like