0

I call the method like this:

Headers:

User-Agent: Fiddler
Content-type: application/json
Content-length: 116
Host: localhost:1234

POST method, URL:

http://localhost:1234/MyService.svc/json/MyMethod

Parameters:

{"email":"here@hotmail.com","json":{"array1":[],"array2":[],"array3":[]}}

Here is the method's signature:

public Result MyMethod(string email, Dictionary<string, object> json)

The method is called. email has ok value, but json has count zero. Why?

petko_stankoski
  • 10,459
  • 41
  • 127
  • 231

1 Answers1

0

What I did was creating a new class which had these properties: List, List, List, and I changed the method:

public void MyMethod(string email, theNewClass json) ;

and it worked.

petko_stankoski
  • 10,459
  • 41
  • 127
  • 231