How to save JSON Data into R Markdown



In my R code I would like to convert a data frame to JSON. After that, I would like to have that JSON be saved into an R Markdown file (HTML). In the end, I would have HTML code with JSON being identifiable in it. I would appreciate any advice and direction.

Thank you!

How do I convert R code to HTML?