Skip to content

Instantly share code, notes, and snippets.

View LuluBeatson's full-sized avatar
:copilot:

Lulu LuluBeatson

:copilot:
View GitHub Profile
@LuluBeatson
LuluBeatson / compare_json.py
Last active November 24, 2025 14:13
Compare Tool Schema
#!/usr/bin/env python3
"""
Compare two JSON files for equivalence, ignoring field order.
Array items are matched by their "name" field.
Supports both .json and .snap files.
"""
import json
import sys
from pathlib import Path