Why a line diff for CAD and JSON
Put Ø20 H7 on the left and Ø20 H8 on the right, with drill 6.8 on the next line of both. The first line is removed and added. The second line matches. A one-character change still replaces the whole line.
A CAD revision, a STEP text export, a JSON payload, or a quote can hide one changed line. Green is added and red is removed. STEP (ISO 10303-21) is text, so two exports show which entities were added or removed. JSON mode pretty-prints both sides and can sort keys, so a reshuffled object is not treated as a rewrite.
The comparison is line by line. Added and removed lines can be copied as a unified diff. It is not a geometric check of a solid: two STEP files can differ in entity numbering while the part is the same shape.
STEP (ISO 10303-21) is text. Two exports of the same part often differ in entity IDs even when the solid is unchanged — that is expected. For geometric size and weight use the STEP model weight calculator. Pretty-print JSON first with the JSON formatter if you only need one document tidied.