[feat] when traversing json save current tree level
[feat] modfied unserialize method to support partial templates