Fix reading json.