You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
This is not an issue, just a problem parsing with my json structure.
I have to parse a json object similar to this: custom_accounts.json.txt
The account object in the Accounts array is always different and I've to identify that based on the account_type field. I have 3 different Account classes that extend from the default Account class.
I tried creating a global account object with all the fields from these 3 account types but there are some custom fields who have the same name but are of different class type which creates a conflict. So I can't use this solution.
I want to create a TypeConvertor for my custom class to convert them based on the account_type field or reflection. How should I implement this?
The text was updated successfully, but these errors were encountered:
Sorry, @lhalegria, I couldn't. I couldn't find anything on stackoverflow or anywhere regarding this issue either. So, I asked the backend team to change the json structure.
Hi,
This is not an issue, just a problem parsing with my json structure.
I have to parse a json object similar to this:
custom_accounts.json.txt
The account object in the Accounts array is always different and I've to identify that based on the account_type field. I have 3 different Account classes that extend from the default Account class.
I tried creating a global account object with all the fields from these 3 account types but there are some custom fields who have the same name but are of different class type which creates a conflict. So I can't use this solution.
I want to create a TypeConvertor for my custom class to convert them based on the account_type field or reflection. How should I implement this?
The text was updated successfully, but these errors were encountered: