json input restructured