Fix response data to be valid JSON

cbugg: close bug-783
Drop unwanted elements from response