Reflection for ToJson/FromJson methods improved