changed the functions name to more rappresentative names, starting logic on the open_node for json tree