Refactored: Json deserialize process restructured. Get all fields for a class(for base classes also)