I want to store a nested json data . In which each json object can be added/deleted by the user. Something like this:
{
"folders": [
{
"folders": [
{
"folders": [
{
"folders": [],
"links": []
}
],
"links": []
},
{
"folders": [],
"links": []
}
],
"links": []
},
{
"folders": [],
"links": []
},
{
"folders": [],
"links": []
}
],
"links": []
}
Like this in which each folders can be added or deleted by the user. One solution I found on internet is to use this json data as string by encoding it and store it in database(hive). I want to find a better solution if any?