Well, seems that what you want is a custom
MessageBodyWriter/MessageBodyRead?

Em qui, 14 de mar de 2019 às 12:00, Ivan Junckes Filho <
ivanjunc...@gmail.com> escreveu:

> I tried based on the blog but didn't work.
>
> https://rmannibucau.wordpress.com/2015/07/09/javaee-apache-johnzon-json-library-javascript-date/
>
> See sample below:
> https://github.com/ivanjunckes/convertertest
>
> But this doesn't also provide the same format for all "Date" fields, I need
> to go field by field and add the converter.
>
> On Thu, Mar 14, 2019 at 11:41 AM Romain Manni-Bucau <rmannibu...@gmail.com
> >
> wrote:
>
> > Hi Ivan,
> >
> > We support it for jsonb and you can overriee default adapters/converters
> in
> > johnzon mapper already.
> >
> > Did you try that? Sounds to me we are already covered for both mappers.
> Am
> > I missing something?
> >
> > Romain
> >
> > Le jeu. 14 mars 2019 à 14:36, Ivan Junckes Filho <ivanjunc...@gmail.com>
> a
> > écrit :
> >
> > > Hey guys,
> > >
> > > I am from Brazil and would be useful to be able to pass a property in
> the
> > > date format from Brazil.
> > >
> > > Is it ok if I submit a PR changing the line below to check it
> > > "johnzon.default-date-format" has a value then use it, if not use the
> > > default yyyyMMddHHmmssZ.
> > >
> > >
> > >
> >
> https://github.com/apache/johnzon/blob/f28196b39ae3d0ff2ccdd8b1e9efe2a5801e1e7f/johnzon-mapper/src/main/java/org/apache/johnzon/mapper/MapperBuilder.java#L81
> > >
> > > What do you think?
> > >
> >
>


-- 
Daniel "soro" Cunha
https://twitter.com/dvlc_

Reply via email to