switch from XML to JSON
This commit is contained in:
parent
94f4009d73
commit
613f0de95c
|
@ -96,12 +96,12 @@ public class ValidationContext<T> extends BaseValidationContext<T> implements IV
|
||||||
IEncoder encoder = new IEncoder() {
|
IEncoder encoder = new IEncoder() {
|
||||||
@Override
|
@Override
|
||||||
public String encode() {
|
public String encode() {
|
||||||
return theContext.newXmlParser().encodeResourceToString(theResource);
|
return theContext.newJsonParser().encodeResourceToString(theResource);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public EncodingEnum getEncoding() {
|
public EncodingEnum getEncoding() {
|
||||||
return EncodingEnum.XML;
|
return EncodingEnum.JSON;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return new ValidationContext<>(theContext, theResource, encoder, options);
|
return new ValidationContext<>(theContext, theResource, encoder, options);
|
||||||
|
|
Loading…
Reference in New Issue