Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing with discriminator #178

Open
jaumard opened this issue May 26, 2019 · 1 comment
Open

Parsing with discriminator #178

jaumard opened this issue May 26, 2019 · 1 comment
Assignees

Comments

@jaumard
Copy link
Contributor

jaumard commented May 26, 2019

In java I used this feature to parse json like this:

[
  { 
    type: 'myClass',...
  }, 
  { 
    type: 'myClass2',...
  }
]

it allow the parser to know which class to instantiate automatically, it's quite nice to have :)
Not sure it's already doable now with jaguar

@tejainece
Copy link
Member

@jaumard We had this functionality before. I removed it because the API for it was all over the place.

I will reimplement the feature in a minimalistic way.

@tejainece tejainece self-assigned this Jun 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants