All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.codehaus.jackson.annotate.JsonWriteNullProperties Maven / Gradle / Ivy

Go to download

Ehcache is an open source, standards-based cache used to boost performance, offload the database and simplify scalability. Ehcache is robust, proven and full-featured and this has made it the most widely-used Java-based cache.

There is a newer version: 2.10.9.2
Show newest version
package org.codehaus.jackson.annotate;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Annotation that can be used to define whether object properties
 * that have null values are to be written out when serializing
 * content as JSON. This affects Bean and Map serialization.
 *

* Annotation can be used with Classes (all instances of * given class) and Methods. *

* Default value for this property is 'true', meaning that null * properties are written. *

* @deprecated (since 1.6) Currently recommended annotation to use is * {@link org.codehaus.jackson.map.annotate.JsonSerialize#include()} * (with values ALWAYS or NON_NULL) */ @Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD}) @Retention(RetentionPolicy.RUNTIME) @JacksonAnnotation @Deprecated public @interface JsonWriteNullProperties { /** * Whether properties for beans of annotated type will always be * written (true), or only if not null (false). */ boolean value() default true; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy