only parse the data if it looks like JSON