Efficient dynamic Jackson configuration using Spring GET Parameters -


i have spring boot set serve json.

i'd build feature user can provide white-listed parameters passed jackson objectmapper

examples:

json?indent_output=true json?write_dates_as_timestamps=false 

however can't find way without creating instance of objectmapper in each spring mvc controller method, configuring according parameters , returning pure strings.

is there way reusing 1 objectmapper?


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -