Would it be better to render each nested item as json instead of just converting it to a string?