Fix the JsonSerializer

Now it doesn't serialize private fields