News for hackers. Stuff that matters.
Re:JSON Schema bundling formalised by easrng on Friday September 10, 2021 @08:25AM (#28480537)
It's easy in JS too, just use a DOMParser
Re:JSON Schema bundling formalised by no_wizard on Friday September 10, 2021 @09:27AM (#28481214)
That is not a JavaScript API, that’s a DOM only API, meaning it’s not reproduced in the language spec. This is important because it won’t work in Node, for example, without a 3rd party library or someone implementing it in Node core.

JSON however is supported in the language spec

Re:JSON Schema bundling formalised by oaiey on Friday September 10, 2021 @02:09PM (#28485152)
And DOM API is an example of bad API design. Compare that to a modern XML API (like .NET System.Xml.XDocument) and you never want to see Dom again