Input JSON
{
"a": "LINEN-2048-B",
"b": "LINEN-2049-B",
"mode": "chars"
}
Attest tools · Text and JSON compare
Find the single changed character in two product codes.
{
"a": "LINEN-2048-B",
"b": "LINEN-2049-B",
"mode": "chars"
}{
"mode": "chars",
"unit": "chars",
"identical": false,
"stats": {
"added": 1,
"removed": 1,
"unchanged": 11
},
"changes": [
{
"type": "unchanged",
"value": "LINEN-204"
},
{
"type": "removed",
"value": "8"
},
{
"type": "added",
"value": "9"
},
{
"type": "unchanged",
"value": "-B"
}
],
"truncated": false,
"coarse": false,
"options": {
"ignore_whitespace": false,
"ignore_case": false,
"context_lines": 3
},
"checked_at": "2026-10-20T20:47:47.592Z"
}curl -s -X POST https://getattest.com.au/api/v1/diff \
-H "authorization: Bearer $ATTEST_API_KEY" \
-H "content-type: application/json" \
--data-raw '{"a":"LINEN-2048-B","b":"LINEN-2049-B","mode":"chars"}'Run this call with your own bearer key. Issue an API key.
The input was validated and run locally through the registered service. The output above is a display preview of the captured service result. File bytes are described instead of printed, and strings longer than 400 characters are truncated; the HTTP API also adds call_id, credits_charged and credits_remaining. Timestamps and generated identifiers will vary.
Source: apps/api/svc/text_diff.mjs