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

com.azure.core.annotation.JsonFlatten Maven / Gradle / Ivy

There is a newer version: 1.54.1
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.core.annotation;

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

import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * Annotation used for flattening properties separated by '.'. E.g. a property with JsonProperty value
 * "properties.value" will have "value" property under the "properties" tree on the wire. This annotation when used on a
 * class, all JSON fields will be checked for '.' and be flattened appropriately.
 */
@Retention(RUNTIME)
@Target({ ElementType.ANNOTATION_TYPE, ElementType.TYPE, ElementType.FIELD })
public @interface JsonFlatten {
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy