Questions tagged [json-rpc]

JSON-RPC is a standard JSON data-format based (r)emote (p)rocedure (c)all protocol.

See http://json-rpc.org/ for specification and implementations for various languages.

JSON stands for JavaScript Object Notation. It is a text-based lightweight data-interchange format. See http://www.json.org/ for details.

RPC stands for remote procedure call, which is a family of protocols. See the Wikipedia article Remote procedure call for origins, current variations and applications.

673 questions
280
votes
15 answers

REST vs JSON-RPC?

I'm trying to chose between REST and JSON-RPC for developing an API for a web application. How do they compare? Update 2015: I have found REST easier to develop and use for an API which is served on Web/HTTP, because the existing and mature HTTP…
Ali Shakiba
  • 20,549
  • 18
  • 61
  • 88
35
votes
5 answers

JSON RPC - What is the "id" for?

I don't understand what the ID is for in JSON RPC. Also, how bad is it considered to not use JSON-RPC.org's standards when developing a toolkit? There seems to be some ambiguity in the JSON-RPC world. P.S. The ID I'm referring to is the id in…
orokusaki
  • 55,146
  • 59
  • 179
  • 257
29
votes
4 answers

how to check if a JSONArray is empty in java?

I am working on an android app that get json content of a webservice called "WebUntis". The Json content i am getting looks like: {"jsonrpc":"2.0","id":"req-002", "result":[ {"id":125043,"date":20110117,"startTime":800,"endTime":850, …
seriously
  • 345
  • 1
  • 3
  • 12
27
votes
3 answers

Convert InputStream into JSON

I am using json-rpc-1.0.jar.Below is my code. I need to convert InputStream object into JSON since the response is in JSON. I did verify the json response obtained from Zappos API. It is valid. PrintWriter out = resp.getWriter(); String jsonString =…
Margi
  • 455
  • 1
  • 9
  • 20
23
votes
3 answers

Flutter console log "Failed to send request: {"jsonrpc":"2.0","id":"9354","method":"getVM","params":{}}"

I have some strange thing happening on my Android studio dart console : every second there is this message : Failed to send request: {"jsonrpc":"2.0","id":"9354","method":"getVM","params":{}} The "id" count keeps incrementing and i can't find a…
julient-monisnap
  • 774
  • 2
  • 8
  • 25
20
votes
1 answer

What the difference between JSON RPC with HTTP2 vs grpc?

I don't like tools that do many things at once. So GRPC seems to me overhead, it's like kubernetes. GRPC is the tool that combines actually two things: extended Protobuf (Service support) and HTTP2. I read a lot of articles saying that using GRPC…
Alexander Kondaurov
  • 3,677
  • 5
  • 42
  • 64
19
votes
5 answers

Python Twisted JSON RPC

Can anyone recommend some simple code to set up a simple JSON RPC client and server using twisted? I found txJSON-RPC, but I was wondering if someone had some experience using some of these anc could recommend something.
Alex Amato
  • 1,591
  • 4
  • 19
  • 32
15
votes
4 answers

How to share data between python processes without writing to disk

Helllo, I would like to share small amounts of data (< 1K) between python and processes. The data is physical pc/104 IO data which changes rapidly and often (24x7x365). There will be a single "server" writing the data and multiple clients reading…
RyanN
  • 740
  • 8
  • 20
14
votes
2 answers

JSON-RPC client in Java

I'm trying to find a way to write a java application that can communicate with a json-rpc service (The service is a python twisted server). However I haven't been able to find a decent library with some good examples (I've googled and fiddled around…
Not Available
  • 3,095
  • 7
  • 27
  • 31
13
votes
3 answers

developing a maintainable RPC system

I am working on a web application that will make extensive use of AJAX techniques for client/server communication...JSON-RPC specifically. Zend Framework is being used server-side, and it offers a nice JSON-RPC server that I would like to use. My…
Josh Johnson
  • 8,832
  • 4
  • 25
  • 31
12
votes
4 answers

JSON-RPC and Json-rpc service discovery specifications

I'm going to implement JSON-RPC web service. I need specifications for this. So far I had found only one resource that can be called as real specifications: JSON-RPC 1.0 http://json-rpc.org/wiki/specification Proposal of JSON-RPC 2.0:…
Artyom
  • 31,019
  • 21
  • 127
  • 215
11
votes
1 answer

ASP.NET Core JSON-RPC

I've created core WebAPI project and while RESTing performs quite good, there's also a need in JSON-RPC functionality. I saw things like this or this, but still don't know which one of them is preferred for organizing server and client(which is…
Troll the Legacy
  • 675
  • 2
  • 7
  • 22
11
votes
4 answers

Real-time bi-directional JSON-RPC communication over HTTP

I am building a JSON-RPC server that accepts requests over HTTP. I would like to support bi-directional communication (both client and server can send requests), the specific use case being a publish/subscribe architecture where a client sends a…
Felix Lange
  • 1,572
  • 11
  • 15
11
votes
2 answers

org.apache.struts2.json.JSONException: Incompatible types for property

I'm receiving a java.util.List via JSON-rpc as a JavaScript array as follows. [ [1, 0.10, 1.00], [2, 0.20, 2.00], [3, 0.30, 3.00], [4, 0.40, 4.00], [5, 0.50, 5.00], [6, 0.60, 6.00], [7, 0.70, 7.00], [8,…
Tiny
  • 27,221
  • 105
  • 339
  • 599
11
votes
1 answer

Add Path to Erlang Search Path?

I recently installed Erlang RFC4627 (JSON-RPC) with the debian package. I ran the test server using: sudo erl -pa ebin and then at the prompt: test_jsonrpc:start_httpd(). returned ok I tested with http://:5671/ and got the success messages. When…
David
  • 2,715
  • 2
  • 22
  • 31
1
2 3
44 45