Re: [Cppcms-users] JSON RPC function doesn't get called.
Brought to you by:
artyom-beilis
From: <ele...@ex...> - 2012-03-30 06:17:39
|
Ahh bummer. Stupid mistake. I'm posting the fix here so other people don't stuff up like me. The problem is in the data POST sent to the server. data: JSON.stringify({"method":"build_aircraft_list", "params":["1"] should be data: JSON.stringify({"method":"build_aircraft_list", "params":[1] Not theres no quotation marks around number 1 in the params section. Petr |