How to detect new lines from a Json text in Java, Android

Viewed 34
1 Answers

It seems that the Json text had \r\n inside that I did not see, and I just had to use:

jsonText.replace("\r\n", "<br/>");

The json is extracted from a MySql database. I could see \r\n special characters only when I did a sql export from PHPmyAdmin.

Related