fix #752 Optimisation on the JsonSerializer, after #750