create node dynamically updates JSON