Now we can respond with json objects or simple text.