jaguar_serializer icon indicating copy to clipboard operation
jaguar_serializer copied to clipboard

Parsing with discriminator

Open jaumard opened this issue 5 years ago • 1 comments

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

jaumard avatar May 26 '19 18:05 jaumard

@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 avatar Jun 09 '19 15:06 tejainece