How to safely render JSON into an inline