foglcz / JSONRpc2

Generic JSON-RPC v2 implementation
Other
19 stars 10 forks source link

Server is unable to work with returned objects #2

Closed zeleznypa closed 11 years ago

zeleznypa commented 11 years ago

If service public method will return data as object, JsonRPCServer send empty stdClass.

foglcz commented 11 years ago

Interesting. The server returns the service return value directly - empty stdClass should be the return value of your service.

Perhaps you're returning a propietary class, which contains everything within private properties? What will you get if you call json_encode() on your return value?

Please provide a test use case. Should you want to solve it privately (due to copyright concerns etc.) contact me on birdie@animalgroup.cz

Thanks.

zeleznypa commented 11 years ago

Sorry, It was my fault. Problem was in private access for the properties. ;) Close this issue please.

foglcz commented 11 years ago

ok, no worries :)