changed private methods of JsonSerializer to implement IgoreDefaultValue