ResourceAssignment toJson method fixed;