Added state to json.