-
-
Notifications
You must be signed in to change notification settings - Fork 312
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
Customized attributes in JSON #91
Comments
This is not possible atm. You need to create either a) a property for C or b) write a custom handler for your object. |
Hi @schmittjoh Thanks for swift response. I didn't clearly understand so I want to repeat to see if I'm right on this: Thanks! |
@schmittjoh couldn't it be possible if you have a getter for C in the class ? |
You would still need the property to declare an @Accessor annotation on it. On Tue, Mar 13, 2012 at 1:03 PM, Christophe Coevoet <
|
Dear all, I'm new to JMS, got a question that I need some help on.
Suppose I have a model that has fields A and B. So serializing that gives only id, A and B, what if I want to expose as a JSON a field C (which is NOT attribute) and is a function of A and B?
e.g.
{"A":2, "B":4, "C":16}
, where C is A^B.
Something like that.
Thanks!!!
The text was updated successfully, but these errors were encountered: