I can’t think of a straightforward way to introduce the existing context object into a JsonMapper for something like that. If you were doing that a lot in your codebase it might be worthwhile to automate it with an annotation processor or something similar though.