Simplify method signature in JsonSerialization