Add encoder for rendering JSON inline in HTML