After reading the json-rpc spec, It seems that params is an array, try the following:
{ "method":"sendReceipt", "params" :[ { "ReceiptData":"ewoJInNpZ25hdHVyZSIgPSAiQXJ....β.", "PersonID":" sam@am.com " } ], "id":"1" }
or that:
{ "method":"sendReceipt", "params" :[ "ewoJInNpZ25hdHVyZSIgPSAiQXJ....β.", " sam@am.com " ], "id":"1" }
jsonrpc version 2.0:
{ "jsonrpc": "2.0", "method": "sendReceipt", "params": { "ReceiptData":"ewoJInNpZ25hdHVyZSIgPSAiQXJ....β.", "PersonID":" sam@am.com " }, "id": 1 }
They should work depending on your needs.
source share