Re:   xml-to-json() function under SaxonJ S

Martin Honnen <[email protected]> Tue, 21 Sep 2021 16:50:32 +0200
Newsgroups gmane.text.xml.saxon.help
Message-ID <trinity-5d1301d8-0b5e-433c-8ef7-a506db696170-1632235832810@msvc-mesg-gmx124>
--===============5607755144101736689==
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable


<html>
 <head>
  <meta name=3D"viewport" content=3D"width=3Ddevice-width">
  <meta http-equiv=3D"Content-Type" content=3D"text/vnd.ui.insecure+html;c=
harset=3Dutf-8">
 </head>
 <body style=3D"overflow-wrap:break-word; word-break: break-word;"><div cl=
ass=3D"mail_android_message" style=3D"line-height: 1; padding: 0.5em">I &q=
uot;complained&quot; about that a while ago: <a href=3D"https://saxonica.p=
lan.io/issues/4991">https://saxonica.plan.io/issues/4991</a><br/><br/>--<b=
r/>Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail gese=
ndet.</div><div class=3D"mail_android_quote" style=3D"line-height: 1; padd=
ing: 0.3em"><html><body>Am 21.09.21, 16:42 schrieb Wendell Piez &lt;wapiez=
@wendellpiez.com&gt;:</body></html><blockquote class=3D"gmail_quote" style=
=3D"margin: 0.8ex 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204)=
; padding-left: 1ex;">

  <div dir=3D"ltr">
   Hello Saxonians,
   <div>
    <br>
   </div>
   <div>
    Today I am a bit surprised to find I get no luck, using SaxonJS in the=
 browser, when trying to serialize JSON as anything but a data brick, when=
 produced by the function xml-to-json(). It is supposed to accept $options=
 and 'indent' is the option available, but unless I am missing something, =
map{ 'indent':true() } is not operative.
   </div>
   <div>
    <br>
   </div>
   <div>
    The documentation says that the function json-to-xml() does not suppor=
t $options but xml-to-json() is not mentioned. Can I confirm that it is (n=
ot) user error that is preventing me from getting the JSON indented, inste=
ad of prettified?
   </div>
   <div>
    <br>
   </div>
   <div>
    If this is not supported what is the recommended workaround: perhaps a=
 JSON serializer is not so hard to write? (I have not thought about it muc=
h.)
   </div>
   <div>
    <br>
   </div>
   <div>
    Thanks for any insight or advice,
   </div>
   <div>
    Wendell
    <br>
    <div>
     <br>
    </div>--
    <br>
    <div class=3D"gmail_signature" dir=3D"ltr">
     ...Wendell Piez... ...wendell -at- nist -dot- gov...
     <br>...wendellpiez.com... ...pellucidliterature.org... ...pausepress.=
org...
     <br>...<a href=3D"http://github.com/wendellpiez.">github.com/wendellp=
iez.</a>.. ...gitlab.coko.foundation/wendell...
    </div>
   </div>
  </div> _______________________________________________ saxon-help mailin=
g list archived at http://saxon.markmail.org/ [email protected]=
.net https://lists.sourceforge.net/lists/listinfo/saxon-help
 </blockquote></div></body>
</html>


--===============5607755144101736689==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============5607755144101736689==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[email protected]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
--===============5607755144101736689==--