switch from XML to JSON

This commit is contained in:
Ken Stevens 2021-11-19 19:19:15 -05:00
parent 94f4009d73
commit 613f0de95c
1 changed files with 2 additions and 2 deletions

View File

@ -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);