fixed json input to PyTreeMap