Hello everyone,
I think I have found a bug in 'convert/pjson'.
load 'convert/pjson'
dec_pjson_ '"\\f\\b"'
\ \
I believe double backslashes should be escaped first, as in:
dec_pjson_ '"\\f\\b"'
\f\b
I fixed the issue on my end by moving the double backslash to the first
substitution:
ESC=:
_2[\('\';'\\';CR;'\r';LF;'\n';TAB;'\t';(8{a.);'\b';FF;'\f';'"';'\"';'/';'\/')
As opposed to
ESC=:
_2[\(CR;'\r';LF;'\n';TAB;'\t';(8{a.);'\b';FF;'\f';'"';'\"';'\';'\\';'/';'\/')
Thanks
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm