# Question regarding @JsonIgnore

**URL:** https://discuss.jsonapi.org/t/question-regarding-jsonignore/2530
**Category:** Uncategorized
**Created:** [October 13, 2022, 2:38pm UTC](https://discuss.jsonapi.org/t/question-regarding-jsonignore/2530 "2022-10-13T14:38:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Encera](https://avatars.discourse-cdn.com/v4/letter/e/c37758/32.png) [@Encera](https://discuss.jsonapi.org/u/Encera)
#### Post date: [October 13, 2022, 2:38pm UTC](https://discuss.jsonapi.org/t/question-regarding-jsonignore/2530/1 "2022-10-13T14:38:24Z")

</div>

Hello, everyone,  
I have a question regarding the JSON Ignore annotation. And I am aware that if I use @JsonIgnore, for example, the “getter” is not taken into account and therefore an attribute of a class is not transferred to the JSON representation.

In my concrete example I send data from “Transactions” to my WebApi. A block explorer accesses this and displays the whole thing graphically (this is a blockchain project).

In addition to some getters, two setters were marked with @JsonIgnore in my book. Now my question: Can someone explain to me in their own words what it means exactly if only the setter but not the getter is annotated with JSON Ignore?

---

<div class="post-metadata">

### Author: ![jelhan](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.jsonapi.org/jelhan/32/822_2.png) [@jelhan](https://discuss.jsonapi.org/u/jelhan)
#### Post date: [November 16, 2022, 9:29pm UTC](https://discuss.jsonapi.org/t/question-regarding-jsonignore/2530/2 "2022-11-16T21:29:08Z")

</div>

The JSON:API specification does not include a JSON ignore annotation. It allows [@-Members](https://jsonapi.org/format/#document-member-names-at-members) since v1.1. But this does not seem what the question is about. Could it be that you ended up in the wrong forum?
