Fixed setting of object values in from_json