use JSON and fix typos