POJO-to-JSON codepaths functional