Make the JSON prefix used in converters configurable
Issue: SPR-10627
This commit is contained in:
@@ -142,7 +142,7 @@ public class MappingJackson2JsonView extends AbstractView {
|
||||
* @see #setJsonPrefix
|
||||
*/
|
||||
public void setPrefixJson(boolean prefixJson) {
|
||||
this.jsonPrefix = prefixJson ? "{} && " : "";
|
||||
this.jsonPrefix = prefixJson ? "{} && " : null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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