JSON arrays and nested objects provide the hierarchical structure required to represent repeating or composite child information within a single JSON document. The uploaded question set explicitly identifies this answer. Oracle AI Database supports standard JSON value types including objects and arrays. An object contains named property/value members, while an array contains an ordered sequence of JSON values. Because array elements can themselves be objects or additional arrays, applications can represent complex parent-child structures naturally within one document.
For example, a customer document can contain an addresses array with multiple address objects, or an order can contain an items array where every element contains product, quantity, and price properties. This avoids artificially flattening inherently hierarchical information.
A scalar property is appropriate for a single value and therefore cannot naturally represent repeated child records. Merely storing an external identifier does not embed the child information in the document. Creating a separate standalone JSON document for every child would also fail the requirement to represent the repeating data inside one document .
Study Guide reference: Working with JSON and Graph in Oracle AI Database — JSON objects, arrays, hierarchical documents, and nested JSON structures.
===============
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit