JSON merge 007(AB)

Simple test, joining together three maps with conflicting keys and 'reject'.

Test is expected to fail with error code err:XC0106.

The pipeline

<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error"
                xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:t="http://xproc.org/ns/testsuite/3.0" version="3.0">
   <p:output port="result"/>
   <p:json-merge duplicates="reject">
      <p:with-input expand-text="false">
         <p:inline content-type="application/json">{"key" : "value1"}</p:inline>
         <p:inline content-type="application/json">{"key3" : "value3"}</p:inline>
         <p:inline content-type="application/json">{"key" : "value4"}</p:inline>
      </p:with-input>
   </p:json-merge>
</p:declare-step>

Revision history

13 Oct 2019, Achim Berndzen
Added tests for p:json-merge