You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Sebastian Daschner (JIRA)" <ji...@apache.org> on 2016/03/17 13:23:33 UTC
[jira] [Created] (JOHNZON-68) @JsonbTransient is not working
Sebastian Daschner created JOHNZON-68:
-----------------------------------------
Summary: @JsonbTransient is not working
Key: JOHNZON-68
URL: https://issues.apache.org/jira/browse/JOHNZON-68
Project: Johnzon
Issue Type: Bug
Affects Versions: 0.9.3-incubating
Reporter: Sebastian Daschner
When annotating a field with {{@JsonbTransient}} that field is still included in the JSON.
Example:
{code}
public class Book {
@JsonbTransient
private long id;
@JsonbProperty("_name")
private String name;
// getters & setters
}
{code}
The output of that example is:
{code}
{"_name": "test", "id":123}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)