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

javascript - Complete OpenIDConnect auth when requesting via Ajax -

c# - Replace text in MailItem Body -

java - Get more than One value and display it -