convert json string back to an object