write JSON to file, make naming more obvious