NXP-14822: add configuration property to display stacktrace in json response in case of exception