json-rpc with erlang -
i have never used json before, , don't care except have requirement access application through json-rpc.
i have done searches on "erlang json" returned proposed erlang bifs mochijson whatever. thing is, have yet find documentation or example using of stuff need do, control app through json-rpc. of docs , examples i've seen have dealt conversions , mappings erlang data types json , back. in fact, docs seem go overboard enthusiasm representing "language x" terms in json i've wondered whether there i've missed along way. far topic has failed stimulate blood flow towards regions of body, whatever - is.
what don't want
i don't care javascript, , don't care doing related json-rpc javascript or browser.
what want
to use json-rpc erlang server side control app server side.
at rate...
1) can point me docs , examples showing erlang using json-rpc library control or access app?
2) can recommend library or libraries this? since using yaws (or attempting to), first choice yaws since appears have json built-in. thing is, yaws examples saw focused on using javascript code browser side trigger kind of json-rpc thing server side, , don't want that.
at rate, i'll accept first thing can want , has documentation showing being used way.
thanks.
what want
to use json-rpc erlang server side control app server side.
did mean there json-rpc server implemented erlang? , want control app behind json-rpc?
lets there json-rpc server @ "https://10.11.1.100:8006/json-rpc/"
and can use program language access url http library, example python's http module data post query or query depend on json-rpc server provided.
let's there "getfruit" , "putfruit" method provided on json-rpc server control app load fruit database. can use python http library start query "https://10.11.1.100:8006/json-rpc/getfruit/3", server return json data contains fruit(id 3) detail.
if want control app sending data it's database use post method on "putfruit" path.
so, simple example how use json-rpc server.
if misunderstanding you, if want how use erlang control app through json-rpc server, use erlang's http library
Comments
Post a Comment