[Info-vax] Restful API w/JSON client package or library on OpenVMS

Arne Vajhøj arne at vajhoej.dk
Thu Mar 21 16:20:08 EDT 2024


On 3/21/2024 2:21 PM, Simon Clubley wrote:
> On 2024-03-21, Single Stage to Orbit <alex.buell at munted.eu> wrote:
>> On Thu, 2024-03-21 at 13:08 +0000, Simon Clubley wrote:
>>> The SAX-style parser model has long since
>>> been left behind as an acceptable way to parse JSON/XML/etc...
>>
>> I wish you hadn't mentioned that. SAX needs to do one :-<
> 
> Sorry. :-) Did I bring back some trauma memories ? :-)
> 
> In the same way that we no longer write applications in assembly language,
> I am just glad that SAX-style parsing isn't still the standard way of doing
> things these days and that we now have libraries which can build a document
> tree we can ask questions about and easily iterate through.
> 
> As mentioned above, there's a really good reason SAX has been left behind
> as an acceptable method, because the alternatives are so much better.

SAX model is "streaming push" model.

There are 4 models for reading XML/JSON - in order from easiest to
use to most difficult to use:
* binding
* DOM tree
* streaming pull
* streaming push

Web services typical use binding if the language and library
supports it.

But I would not totally discard the streaming parsers.

They are needed if the XML/JSON can't be in memory. Not the
case for web services though.

And they are often used as foundation for the other models
(DOM trees and binding).

Arne





More information about the Info-vax mailing list