How to limit nested objects returned in JSON data type?
Posted by: Glide K
Date: September 06, 2016 03:33PM

For JSON column types, is there a way to limit the number of nested objects returned?

For example, a column with the schema below, is there a way to return the data limited by number of friends? That is return record Alice but only include 5 friends in the array:

{
"name": "Alice",
"age": 30,
"friends": [
{
"name": "Bob",
"friends": [
{
"name": "Carl",
"friends": []
},
{
"name": "Danny",
"friends": []
},
...
]
}
...
}

Options: ReplyQuote


Subject
Views
Written By
Posted
How to limit nested objects returned in JSON data type?
1222
September 06, 2016 03:33PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.