If there is data, we send it as json - once I make this configurable, this will be the default behaviour.