flatten JSON formatting of examples list