Update rawjson formatter to build the correct output. Closes #127