Javascript Iterate Over Array Of Objects Json Formatter