Check if the text is a json and prettify it