Updated json_formatter spec
Minor refactor