a json parser in es6, because reasons