Fixing issues in json data