Fix weird payload enclosure in JSON parsing