Any library with support JSON-RPC for D?
Dicebot
public at dicebot.lv
Sun Aug 11 11:22:38 PDT 2013
On Sunday, 11 August 2013 at 17:01:32 UTC, ilya-stromberg wrote:
> Can you print any code example, please? Or just link to the
> documentation?
There is a REST example packaged with vibe.d:
https://github.com/rejectedsoftware/vibe.d/blob/master/examples/rest/source/app.d
As you may notice, it uses the very same interface declaration
for both `registerRestInterface` on server and
`RestInterfaceClient`. In example they are run within same
program but same can be done for two separate binaries, resulting
in, essentially, RPC for that interface methods with all D data
types (de)serialized using JSON behind the scene.
More information about the Digitalmars-d
mailing list