Add state to the json data