add parser for json data

fix typo

delete console.log