fix Optimisation on the JsonSerializer, after the fix #750