Hi!
The app I’m making involves using a dictionary api, but I’m unsure of what JSON blocks to use in order to get the value definition from this JSON. Could someone please help me with the blocks required?
[ { "word": "hello", "phonetics": [ { "text": "/həˈloʊ/", "audio": "https://lex-audio.useremarkable.com/mp3/hello_us_1_rr.mp3" }, { "text": "/hɛˈloʊ/", "audio": "https://lex-audio.useremarkable.com/mp3/hello_us_2_rr.mp3" } ], "meanings": [ { "partOfSpeech": "exclamation", "definitions": [ { "definition": "Used as a greeting or to begin a phone conversation.", "example": "hello there, Katie!" } ] }, { "partOfSpeech": "noun", "definitions": [ { "definition": "An utterance of “hello”; a greeting.", "example": "she was getting polite nods and hellos from people", "synonyms": [ "greeting", "welcome", "salutation", "saluting", "hailing", "address", "hello", "hallo" ] } ] }, { "partOfSpeech": "intransitive verb", "definitions": [ { "definition": "Say or shout “hello”; greet someone.", "example": "I pressed the phone button and helloed" } ] } ] } ]
Formatted:
[
{
“word”: “hello”,
“phonetics”: [
{
“text”: “/həˈloʊ/”,
“audio”: “https://lex-audio.useremarkable.com/mp3/hello_us_1_rr.mp3”
},
{
“text”: “/hɛˈloʊ/”,
“audio”: “https://lex-audio.useremarkable.com/mp3/hello_us_2_rr.mp3”
}
],
“meanings”: [
{
“partOfSpeech”: “exclamation”,
“definitions”: [
{
“definition”: “Used as a greeting or to begin a phone conversation.”,
“example”: “hello there, Katie!”
}
]
},
{
“partOfSpeech”: “noun”,
“definitions”: [
{
“definition”: “An utterance of “hello”; a greeting.”,
“example”: “she was getting polite nods and hellos from people”,
“synonyms”: [
“greeting”,
“welcome”,
“salutation”,
“saluting”,
“hailing”,
“address”,
“hello”,
“hallo”
]
}
]
},
{
“partOfSpeech”: “intransitive verb”,
“definitions”: [
{
“definition”: “Say or shout “hello”; greet someone.”,
“example”: “I pressed the phone button and helloed”
}
]
}
]
}
]
I never expected these blocks to work, but please suggest how I may change them;
Thanks!
cc: @drted