HTML in json file

I’m following this guide, and getting the data to show up no worries. What I’m struggling with however, is if I want some HTML in my json file, for example, if I want to add a class to part of a string. Is the only way to do this using dangerouslySetInnerHTML?