Implement #33, add `@JsonRootName.alwaysWrap`
diff --git a/release-notes/VERSION b/release-notes/VERSION
index bca6050..0717df8 100644
--- a/release-notes/VERSION
+++ b/release-notes/VERSION
@@ -6,7 +6,11 @@
#31: Allow use of `@JsonPropertyOrder` for properties (not just classes)
#32: Add `@JsonProperty.index`
+#33: Add `@JsonRootName.alwaysWrap`
- Add `JsonFormat.Value#timeZoneAsString` (needed by Joda module)
+- Add `@JsonRootName.namespace` to allow specifying of namespace with
+ standard Jackson annotations (not just XML-specific ones that dataformat-xml
+ provides)
------------------------------------------------------------------------
=== History: ===
diff --git a/src/main/java/com/fasterxml/jackson/annotation/JsonRootName.java b/src/main/java/com/fasterxml/jackson/annotation/JsonRootName.java
index e8e5732..b282de7 100644
--- a/src/main/java/com/fasterxml/jackson/annotation/JsonRootName.java
+++ b/src/main/java/com/fasterxml/jackson/annotation/JsonRootName.java
@@ -22,4 +22,23 @@
*/
public String value();
+ /**
+ * Optioanl marker property that can be defined as <code>true</code> to force
+ * wrapping of root element, regardless of whether globally
+ * "root wrapping" is enabled or not.
+ *<p>
+ * Note that value of <code>false</code> is taken to mean "use defaults",
+ * and will not block use of wrapper if use is indicated by global features.
+ *
+ * @since 2.4
+ */
+ public boolean alwaysWrap() default false;
+
+ /**
+ * Optional namespace to use with data formats that support such
+ * concept (specifically XML).
+ *
+ * @since 2.4
+ */
+ public String namespace() default "";
}