Json mapping Examples

module M
{
 dictionary<int, string> D;
 class Base { int i; };
 class Derived extends Base { short s; };
 interface I
 {
  void methodA(D myparam);
  void methodB(Base myparam);
 };
}:

Input Json to call methodA:

Different Input Json to call methodB: