How can I parse this JSON using unity’s JsonUtility.FromJson?
I’m not sure what kind of structure I need to create considering that there is more than 1 definition.
This the Json. It contains the various definition of the word “bottle”.
[
{
"partOfSpeech": "noun",
"attributionText": "from Wiktionary, Creative Commons Attribution/Share-Alike License.",
"sourceDictionary": "wiktionary",
"text": "A container, typically made of glass and having a tapered neck, used for holding liquids.",
"word": "bottle",
"attributionUrl": "http://creativecommons.org/licenses/by-sa/3.0/",
"wordnikUrl": "https://www.wordnik.com/words/bottle",
"citations": [],
"exampleUses": [],
"labels": [],
"notes": [],
"relatedWords": [],
"textProns": []
},
{
"partOfSpeech": "noun",
"attributionText": "from Wiktionary, Creative Commons Attribution/Share-Alike License.",
"sourceDictionary": "wiktionary",
"text": "The contents of such a container.",
"word": "bottle",
"attributionUrl": "http://creativecommons.org/licenses/by-sa/3.0/",
"wordnikUrl": "https://www.wordnik.com/words/bottle",
"citations": [],
"exampleUses": [],
"labels": [],
"notes": [],
"relatedWords": [],
"textProns": []
},
{
"partOfSpeech": "noun",
"attributionText": "from Wiktionary, Creative Commons Attribution/Share-Alike License.",
"sourceDictionary": "wiktionary",
"text": "A container with a rubber nipple used for giving liquids to infants",
"word": "bottle",
"attributionUrl": "http://creativecommons.org/licenses/by-sa/3.0/",
"wordnikUrl": "https://www.wordnik.com/words/bottle",
"citations": [],
"exampleUses": [],
"labels": [],
"notes": [],
"relatedWords": [],
"textProns": []
},
{
"partOfSpeech": "noun",
"attributionText": "from Wiktionary, Creative Commons Attribution/Share-Alike License.",
"sourceDictionary": "wiktionary",
"text": "<xref>Nerve</xref>, <xref>courage</xref>.",
"labels": [
{
"text": "UK",
"type": "region"
},
{
"text": "informal",
"type": "register"
}
],
"word": "bottle",
"attributionUrl": "http://creativecommons.org/licenses/by-sa/3.0/",
"wordnikUrl": "https://www.wordnik.com/words/bottle",
"citations": [],
"exampleUses": [],
"notes": [],
"relatedWords": [],
"textProns": []
},
{
"partOfSpeech": "noun",
"attributionText": "from Wiktionary, Creative Commons Attribution/Share-Alike License.",
"sourceDictionary": "wiktionary",
"text": "With one's <xref>hair</xref> color produced by <xref>dyeing</xref>.",
"labels": [
{
"text": "attributive",
"type": "usage"
}
],
"word": "bottle",
"attributionUrl": "http://creativecommons.org/licenses/by-sa/3.0/",
"wordnikUrl": "https://www.wordnik.com/words/bottle",
"citations": [],
"exampleUses": [],
"notes": [],
"relatedWords": [],
"textProns": []
},
{
"partOfSpeech": "noun",
"attributionText": "from Wiktionary, Creative Commons Attribution/Share-Alike License.",
"sourceDictionary": "wiktionary",
"text": "A bundle, especially of hay; something tied in a bundle.",
"labels": [
{
"text": "obsolete",
"type": "chronological"
}
],
"word": "bottle",
"attributionUrl": "http://creativecommons.org/licenses/by-sa/3.0/",
"wordnikUrl": "https://www.wordnik.com/words/bottle",
"citations": [],
"exampleUses": [],
"notes": [],
"relatedWords": [],
"textProns": []
},
{
"partOfSpeech": "verb",
"attributionText": "from Wiktionary, Creative Commons Attribution/Share-Alike License.",
"sourceDictionary": "wiktionary",
"text": "To seal (a liquid) into a bottle for later consumption.",
"labels": [
{
"text": "transitive",
"type": "grammar"
}
],
"word": "bottle",
"attributionUrl": "http://creativecommons.org/licenses/by-sa/3.0/",
"wordnikUrl": "https://www.wordnik.com/words/bottle",
"citations": [],
"exampleUses": [],
"notes": [],
"relatedWords": [],
"textProns": []
},
{
"partOfSpeech": "verb",
"attributionText": "from Wiktionary, Creative Commons Attribution/Share-Alike License.",
"sourceDictionary": "wiktionary",
"text": "To feed (an infant) <xref>baby formula</xref>.",
"labels": [
{
"text": "transitive",
"type": "grammar"
},
{
"text": "UK",
"type": "region"
}
],
"word": "bottle",
"attributionUrl": "http://creativecommons.org/licenses/by-sa/3.0/",
"wordnikUrl": "https://www.wordnik.com/words/bottle",
"citations": [],
"exampleUses": [],
"notes": [],
"relatedWords": [],
"textProns": []
},
{
"partOfSpeech": "verb",
"attributionText": "from Wiktionary, Creative Commons Attribution/Share-Alike License.",
"sourceDictionary": "wiktionary",
"text": "To refrain from doing (something) at the last moment because of a sudden loss of courage.",
"labels": [
{
"text": "UK",
"type": "region"
},
{
"text": "slang",
"type": "register"
}
],
"word": "bottle",
"attributionUrl": "http://creativecommons.org/licenses/by-sa/3.0/",
"wordnikUrl": "https://www.wordnik.com/words/bottle",
"citations": [],
"exampleUses": [],
"notes": [],
"relatedWords": [],
"textProns": []
},
{
"partOfSpeech": "verb",
"attributionText": "from Wiktionary, Creative Commons Attribution/Share-Alike License.",
"sourceDictionary": "wiktionary",
"text": "To strike (someone) with a bottle.",
"labels": [
{
"text": "UK",
"type": "region"
},
{
"text": "slang",
"type": "register"
}
],
"word": "bottle",
"attributionUrl": "http://creativecommons.org/licenses/by-sa/3.0/",
"wordnikUrl": "https://www.wordnik.com/words/bottle",
"citations": [],
"exampleUses": [],
"notes": [],
"relatedWords": [],
"textProns": []
}
]