use Base.sprint
don't bother with `export JSON`
escape quotes withing strings
rename to "write-json"
tidy test