In our angular application we have the current situation, that an existing JSON file get's bigger and bigger with upcoming tasks and the idea is to split it up into multiple JSON files and import them at the right position if needed.
The objects are nested and the idea is, to split up the last object into a separate file and import it later. How do I achieve this? By looping through all nested objects until I find my property? General question, is this process basically considered as an import or merge? Is this good practice or should we rethink the process to avoid redundancy?
{
"name":"a",
"value1":"b",
"properties": {
"name":"aa",
"value1":"bb",
"properties": {
"name":"aaa",
"value1":"bbb",
"properties": {
//import here
}
I'm new in the business and also 1st time posting on stackoverflow, so please be gentle.