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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -