finished json input figure