json rpc protocol for php and iOS