Thursday, February 21, 2013

View Outputformat "json" issue

I got problem with "Outputformat=json" for view. In the case of "!" sign presence in a view column, it wrapped to "\!". That is incorrect for canonical JSON.

I use JSON for HTML output, so I fix it by replacing "!" to it's HTML code "!".

To fix - place simple formula in to the column value:
@ReplaceSubstring(HTMLinList;"!";"!")


No comments: