removing erroneous invalid JSON