There was an error while loading. Please reload this page.
Specifies what values should be included when serializing to JSON. Can be specified on a class, or property/method basis.
Don't include null properties in the serialized form of this object. Additionally the foo field should not be included if it's considered empty().
For Doctrine driven annotations:
<? /** * @JsonInclude(JsonInclude::INCLUDE_NON_NULL) */ class Baz { /** * @JsonProperty * @JsonInclude(JsonInclude::INCLUDE_NON_EMPTY) */ public $foo;
For Weasel annotations:
<? /** * @JsonInclude(JsonInclude.Include.NON_NULL) */ class Baz { /** * @JsonProperty * @JsonInclude(JsonInclude.Include.NON_EMPTY) */ public $foo;
Back to Annotations list