result base class toArray && toJson methods added