You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juneau.apache.org by Raphi D Lee <yi...@gmail.com> on 2017/11/29 08:26:11 UTC

Do we have any feature like @JsonProperty ?

Hi all,

I am trying to modify property’s name on JSON marshall result.
Do we have any feature like @JsonProperty in jackson project?
If not, Can I add any Annotation like that?

Thanks,
Regards.








Raphi D Lee, yidonguk@gmail.com





Re: Do we have any feature like @JsonProperty ?

Posted by Raphi D Lee <yi...@gmail.com>.
Thanks James!
I need to dig Juneau more. :)







Raphi D Lee, yidonguk@gmail.com




> 2017. 11. 29. 오후 11:20, James Bognar <ja...@gmail.com> 작성:
> 
> Hi Raphi,
> 
> Yea we do.  It's @BeanProperty(name="foo").
> 
> http://juneau.apache.org/site/apidocs/org/apache/juneau/annotation/BeanProperty.html#name--
> 
> On Wed, Nov 29, 2017 at 3:26 AM, Raphi D Lee <yi...@gmail.com> wrote:
> 
>> Hi all,
>> 
>> I am trying to modify property’s name on JSON marshall result.
>> Do we have any feature like @JsonProperty in jackson project?
>> If not, Can I add any Annotation like that?
>> 
>> Thanks,
>> Regards.
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Raphi D Lee, yidonguk@gmail.com
>> 
>> 
>> 
>> 
>> 


Re: Do we have any feature like @JsonProperty ?

Posted by James Bognar <ja...@gmail.com>.
Hi Raphi,

Yea we do.  It's @BeanProperty(name="foo").

http://juneau.apache.org/site/apidocs/org/apache/juneau/annotation/BeanProperty.html#name--

On Wed, Nov 29, 2017 at 3:26 AM, Raphi D Lee <yi...@gmail.com> wrote:

> Hi all,
>
> I am trying to modify property’s name on JSON marshall result.
> Do we have any feature like @JsonProperty in jackson project?
> If not, Can I add any Annotation like that?
>
> Thanks,
> Regards.
>
>
>
>
>
>
>
>
> Raphi D Lee, yidonguk@gmail.com
>
>
>
>
>