java - Convert Spring BindingResult to JSON? -
i'm trying export spring framework bindingresult object json send web client we're building. need list of errors:
list<objecterror> getallerrors()
unfortunately, seems have lot of self-referencing internal links result in jsonmappingexception error:
com.fasterxml.jackson.databind.jsonmappingexception: infinite recursion (stackoverflowerror) (through reference chain: [snip]
is there simple, "canned" way of doing or need write something? i'm not averse writing nice if there like:
bindingresult.getallerrors().asjson();
Comments
Post a Comment