I have in input this json:
I have this .Net Class:
public class InputParams
public Object param1;
When i try to convert this JSON in InputParams class, i see that param1 was converted in Int64:
but is only a number, but for "1" I aspect that was converted as BYTE.
When i try to convert this, i receive INT64, but is only a Int16.
Can anyone tell me how i can customize the parameters conversion process?
I need to work with reflections, so i need to send at myMethodInfo.Invoke the correct type
but the JsonConvert send wrong value.