Am 10.09.2023 um 13:44 schrieb Roger L Costello costello@xxxxxxxxx:
>
> 1.
>
>
> 2. There is input data that code consumes and output data that code
> produces. What is the format of the input data? What is the format
> of the output data? I like using a format that has a good query
> language. That way I can run queries on the input data to check
> that I correctly understand the input data and I can run queries
> on the output data to check that my code generated the correct
> output data. I really like the XPath query language b it is both
> simple and powerful. Of course, XPath is only applicable to
> XML-formatted data, so I like formatting the input and output data
> as XML.
>
XPath 3.1 can also process and query JSON data, see the parse-json and
json-doc function and the XDM maps and arrays functions and the use of ?
as a lookup operator on XDM maps and arrays (to which JSON objects and
arrays are mapped).
|