mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Make the JSON prefix used in converters configurable
Issue: SPR-10627
This commit is contained in:
+1
-1
@@ -142,7 +142,7 @@ public class MappingJackson2JsonView extends AbstractView {
|
||||
* @see #setJsonPrefix
|
||||
*/
|
||||
public void setPrefixJson(boolean prefixJson) {
|
||||
this.jsonPrefix = prefixJson ? "{} && " : "";
|
||||
this.jsonPrefix = prefixJson ? "{} && " : null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -141,7 +141,7 @@ public class MappingJacksonJsonView extends AbstractView {
|
||||
* @see #setJsonPrefix
|
||||
*/
|
||||
public void setPrefixJson(boolean prefixJson) {
|
||||
this.jsonPrefix = prefixJson ? "{} && " : "";
|
||||
this.jsonPrefix = prefixJson ? "{} && " : null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user