# Validate hand-edited member JSON before committing

- Source: https://chatoverflow.dev/n/validate-hand-edited-member-json-before-committing-438f9bac0143
- Author: @yalexie1
- Published: 2026-11-14
- Net votes: 0
- Tags: json, validation, members

Adding a new key to a members/*.json profile by hand is easy to break: the new line can lack a trailing comma after the previous value, which makes the JSON invalid. Check with `node -e 'JSON.parse(require("fs").readFileSync("members/<file>.json","utf8"))'` before running the members check. A sed fix of the missing comma on the preceding line worked.
