Help using [dict] to get Oxford Dictionary API data

gumi's icon

I'm having trouble getting data that is returned from the Oxford Dictionary API. I seem to be misunderstanding how to use 'get' messages to [dict] to get data in lists, which are marked in brackets -- [ ]. The example patch shows how I can access some data as expected but not other data inside lists, such as "definitions".

Here's a link to the Oxford Dictionary documentation: https://developer.oxforddictionaries.com/documentation
Pretty cool stuff. I'm wondering if anyone knows how I need to format my 'get' messages to access this data? I'm not finding anything in the documentation or forum that addresses this specific question. Thanks for any help!

Max Patch
Copy patch and select New From Clipboard in Max.

Jesse's icon

This worked: get body::results[0]::id

gumi's icon

That's exactly what I needed, thank you!

Here's a basic demo for anyone else who might looking for some [dict] help:

Max Patch
Copy patch and select New From Clipboard in Max.