Thanks, I have made your fix and the addon is updated.
On Sat, Mar 9, 2019 at 10:52 AM Nimp O <[email protected]> wrote:
> 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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm