Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Bold words in a string of json file in Android

I have a long text in one of the strings at json file. I want to make bold of some words in that text.

How can I do it?

sample.json file:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

    {
        "local_id": "82",
        "local_title": "He is Lord",
        "local_hint": "He is Lord",
        "local_text": "He is Lord, He is Lord\nHe is risen from the dead and He is Lord\nEvery knee shall bow,\nevery tongue confess\nThat Jesus Christ is Lord.",
        "local_category": "nothing",
        "local_categorycount": "1"


    }

>Solution :

JSON only stores plain text, It does not format the text, if you want to make the data in the JSON object appear bold or colorful in the UI you need to handle this from the front end side.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading