{"id":"json-array-align","version":"1.0.0","description":"Align two JSON arrays with duplicate-safe occurrence pairs and deterministic LCS tie-breaking.","supported_operations":["align two JSON arrays","find common JSON array sequence","match duplicate array occurrences","compute deterministic array LCS","map array indexes by value","compare ordered JSON values"],"unsupported_operations":["merging JSON objects by key","reading JSON text or files"],"semantics":["Values are compared by RFC 8259 JSON structure with object member names sorted; array order and number spelling after parsing follow JavaScript JSON values.","Alignment uses longest common subsequence; on equal alternatives it advances the first input, a deterministic deletion-before-insertion tie rule. Duplicate values are identified by matched occurrence, never by value alone.","The implementation is synchronous, offline and deterministic and reports RFC 8259 + Myers 1986 and version 1.0.0."],"limits":{"max_input_bytes":65536,"max_items":128,"max_iterations":49152,"max_output_bytes":131072},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["left","right"],"properties":{"left":{"type":"array","maxItems":128,"items":{}},"right":{"type":"array","maxItems":128,"items":{}}}},"output_schema":{"type":"object","additionalProperties":false,"required":["reference","version","pairs","left_only","right_only"],"properties":{"reference":{"type":"string","const":"RFC 8259 + Myers 1986"},"version":{"type":"string","const":"1.0.0"},"pairs":{"type":"array","maxItems":128,"items":{"type":"object","additionalProperties":false,"required":["left_index","right_index","occurrence"],"properties":{"left_index":{"type":"integer","minimum":0,"maximum":127},"right_index":{"type":"integer","minimum":0,"maximum":127},"occurrence":{"type":"integer","minimum":1,"maximum":128}}}},"left_only":{"type":"array","maxItems":128,"items":{"type":"integer","minimum":0,"maximum":127}},"right_only":{"type":"array","maxItems":128,"items":{"type":"integer","minimum":0,"maximum":127}}}},"examples":[{"input":{"left":["a","b"],"right":["a","c","b"]},"output":{"reference":"RFC 8259 + Myers 1986","version":"1.0.0","pairs":[{"left_index":0,"right_index":0,"occurrence":1},{"left_index":1,"right_index":2,"occurrence":1}],"left_only":[],"right_only":[1]}},{"input":{"left":[],"right":[]},"output":{"reference":"RFC 8259 + Myers 1986","version":"1.0.0","pairs":[],"left_only":[],"right_only":[]}}],"execute_url":"/v1/tools/json-array-align/versions/1.0.0/execute"}