I perform some CRUD operation by consuming REST APIs. Some of the entities I want to create do not have values for non-mandatory fields. When I pass those entities to servers, the call breaks with a NullPointerException. Hence I do not want to send a variable if it is null. We shall use JsonInclude annotation as shown below
Object coversion by Jackson failed with error com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field “ComponentType”
Jackson tries to search for the variable name as per java variable naming standards. As there is no variable defined as ‘componentType’, it fails. Defining right variable name using @JsonProperty will solve this problem!
<p>I am a paragraph</p>
<content>I am a content</content>
<li>I am an unordered list identified as myid</li>
I am a div identified as myclass
The above snippet will help to hide the given blocks like in paragraph, content and unordered list blocks.
Initially it blocks everything. When we click any of the blocks, it will hide. After clicking the paragraph in the first line, this is what you see.
This helps to hide standard blocks using its tag or id or class names!