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

org.codehaus.jackson.map.annotation.JsonAny Maven / Gradle / Ivy

Go to download

Data Mapper package is a high-performance data binding package built on Jackson JSON processor

There is a newer version: 1.9.13
Show newest version
package org.codehaus.jackson.map.annotation;

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

/**
 * Marker annotation that can be used to define a specific property 
 * to be a "fallback" container of all unknown entries when
 * deserializing Java objects from Json content.
 * It is similar to {@link javax.xml.bind.annotation.XmlAnyElement}
 * in behavior; and can only be used to denote a single property
 * per type. Also, type itself has to be either a {@link java.util.Map}
 * or a Bean type.
 *

* If used, all otherwise unmapped key-value pairs from Json Object * structs are added to the property (of type Map or bean). */ @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface JsonAny { }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy