Input JSON
{
"a": "Ship the blue linen.",
"b": "Ship the white linen.",
"mode": "words"
}
Attest tools · Text and JSON compare
Find the words changed between two short sentences.
{
"a": "Ship the blue linen.",
"b": "Ship the white linen.",
"mode": "words"
}{
"mode": "words",
"unit": "words",
"identical": false,
"stats": {
"added": 1,
"removed": 1,
"unchanged": 3
},
"changes": [
{
"type": "unchanged",
"value": "Ship the "
},
{
"type": "removed",
"value": "blue"
},
{
"type": "added",
"value": "white"
},
{
"type": "unchanged",
"value": " linen."
}
],
"truncated": false,
"coarse": false,
"options": {
"ignore_whitespace": false,
"ignore_case": false,
"context_lines": 3
},
"checked_at": "2026-10-20T20:47:47.587Z"
}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":"Ship the blue linen.","b":"Ship the white linen.","mode":"words"}'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