Trying to parse JSON

I am working on automation to read through medical records and return certain items in json format. This is working just fine, and I get a response like so after deserializing:


I can achieve the above doing this: OutputJSON(“choices”)(0).Item(“text”).ToString

What I haven’t been able to hit on yet is the syntax to get any of the sub-items, such as ‘PatientName’ or ‘Diagnosis’. I have attempted to use .SelectToken, or a second .Item pointed at the element, but am getting an error on both. I am hoping I am just missing something stupid simple in the syntax

Welcome to the forum

try: OutputJSON("choices")(0).Item("text")("PatientName").Value(OF String)

Feel free to share the entire JSON as TextFile with us