Adds ability to parse from json string