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
10
votes
2 answers

TypeError: 'Response' object has no attribute '__getitem__'

I am trying to get a value from a response object in a dictionary, but I keep running into this error, am I wrong in thinking you __getitem__ is more commonly used for indexing in classes? Here is the code: import json import requests from…
cyclopse87
  • 619
  • 2
  • 11
  • 22
10
votes
2 answers

JSON-RPC Swagger combination

I am considering to implement JSON-RPC for my web service with this library. I would also like to implement Swagger for my service. However, I am not sure, if these two are a good combination together. In JSON-RPC all methods are behind the same…
Karens
  • 613
  • 5
  • 18
9
votes
1 answer

Data validation in AVRO

I am new to AVRO and please excuse me if it is a simple question. I have a use case where I am using AVRO schema for record calls. Let's say I have avro schema { "name": "abc", "namepsace": "xyz", "type": "record", "fields": [ …
user2166328
  • 199
  • 2
  • 2
  • 6
8
votes
2 answers

Bidirectional JSON-RPC over TCP socket Java implementation

Does anyone know if some Java implementation of the JSON-RPC protocol exists with bidirectional support (there is no Client/Server, both entities can send and receive the same messages). I know it exists in Python: bjsonrpc Thanks!
nbarraille
  • 9,926
  • 14
  • 65
  • 92
8
votes
2 answers

JSONRPC request with curl

I have a 32602 error for all requests using dictionary as params, whereas these work with a simple params. For example: curl -d '{"id":"json","method":"add","params":[1,2] }' -o – ‘http address for json rpc’ works, but : curl -d…
user3767873
  • 103
  • 1
  • 2
  • 4
8
votes
2 answers

Making a JSON-RPC HTTP call using C#

I would like to know how to make the following HTTP call using C#. http://user:pass@localhost:8080/jsonrpc?request={"jsonrpc":"2.0","method":"VideoLibrary.Scan"} When I paste this url directly into my browser (and replace the user credentials &…
marcusstarnes
  • 6,393
  • 14
  • 65
  • 112
8
votes
5 answers

shiny-server. Print JSON as a result output

I'm trying to use shiny-server as a process server: receive URL request, process R subroutines and output JSON as a result. but I have been unable print the output directly to the browser in JSON. Is posible to use shiny-server in this way? PD: I…
Alex A.
  • 633
  • 9
  • 12
7
votes
1 answer

How to avoid "PeerDiscoveryException" when running RSK node on Windows?

I started running RSK node on Windows and when I tried: curl -X POST -H "Content-Type:application/json" --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' http://localhost:4444 I always…
serlokiyo
  • 353
  • 1
  • 9
7
votes
2 answers

JSON RPC Documentation Tool

Are there any Documentation Tools for JSON RPC API's? I found a lot which are perfect for RESTful API's (Slate, Spotlight, Swagger) but sadly none suitable for JSON RPC API's. Ideal would be a Tool that can handle both. Are there any? Thanks a lot!
7
votes
1 answer

What is difference between json-rpc and json-api?

Could anybody explain advantage of using json-rpc over json-api and vice-versa? First and second format are JSON-based, but where I should use one, and where is another?
Dmitry Bubnenkov
  • 9,415
  • 19
  • 85
  • 145
7
votes
3 answers

What's the best way to make one node.js server "talk" to another?

MsgPack ? JSON-RPC ? Socket.io (is it possible ? how ?) EDIT: I am talking about 2 node processes each one on a different physical machine; I don't understand how redis can help me on this...
João Pinto Jerónimo
  • 9,586
  • 15
  • 62
  • 86
7
votes
2 answers

How to validate Ethereum addresses in PHP

I'm using PHP and curl with json to interact with my geth server. I'm able to do all I want except one thing: checking if user's inputted address is valid according to ethereum wallet format. I saw a javascript function here, but I'm mostly using…
btc4cash
  • 375
  • 1
  • 4
  • 15
7
votes
2 answers

Call golang jsonrpc with curl

I have "hello world" rpc service written in golang. It works fine and go jsonrpc client is working. But I need to send request with curl and this example doesn't work: curl \ -X POST \ -H "Content-Type: application/json" \ -d '{"id": 1, "method":…
Paul Rumkin
  • 6,737
  • 2
  • 25
  • 35
7
votes
2 answers

Non-GPL JSON-RPC library for C++

What non-GPL libraries are available for writing JSON-RPC servers and clients in native C++? According to http://json-rpc.org/wiki/implementations, there seems to only exist one implementation of JSON-RPC for C++, namely JsonRpc-Cpp, but that only…
dalle
  • 18,057
  • 5
  • 57
  • 81
7
votes
2 answers

My Windows Phone app Get empty response (404 Not Found) Scond time, work's great first time;And always work fine if without SSL

I am building my first windowsPhone 8.1 application ,the role of my application is to create connection with server to get information from it, so I am writing the code to do this process by sending json-rpc request to server to get some…
Bashar Abu Shamaa
  • 1,998
  • 2
  • 21
  • 36
1
2
3
44 45