How to update deep value in json tree
I 'm building a self referencing component where you can add sub objects indefinitley . I got it work ! But the issue im having now is how to handle edits to the object . Lets say im a few levels in the json , and change a value . This level has no knowledge about its parents . So i try to send the data up , but sending the data up a level is on the child object , but that is the same component as the parent object . so aaaahh im really confused . here 's what i have so far . i tried with events and stuff but still wasnt able to get it working : https://editor.nordcraft.com/projects/sapphire_bossk_gastric_panda/branches/start/components&sourceid=chrome&ie=UTF-8&sei=_w9TaNTuFPrAi-gP9ZOY8Qg The end goal is that the json will be a value in a table . so any change done visually , will get sent to the db and then be reflected in the builder . Thanks ! An I want to change Kaspers name property Now he is Super kasper I see . . . but i feel like my situation is different because the deep object has no knowledge of the full object , just it 's values /properties . Imagine the Simple Json viewwer you built . How would you add the evility to edit values within that json viewer ? if its a nested object . it feels more complex , but maybe its just a lack of understanding