In general, this is a bad idea as if the term you pass is by accident some
valid Prolog representation of a JSON term, you'll get totally unexpected
JSON. It can be practical though, so I've added an option
serialize_unknown(true)
that does this. Use with care. Available in the development git version.
Cheers --- Jan
>
> --
> You received this message because you are subscribed to the Google
> Groups "SWI-Prolog" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
swi-prolog+...@googlegroups.com
> <mailto:
swi-prolog+...@googlegroups.com>.
> Visit this group at
http://groups.google.com/group/swi-prolog.
> For more options, visit
https://groups.google.com/d/optout.