Add constructor to instantiate with json