Skip to content

JSON RPC Template

Francois Normandin edited this page Oct 10, 2016 · 2 revisions

What is JSON-RPC?

RPC (Remote Procedure Call) is a type of protocol for interprocess communication through requests and responses. JSON-RPC is a specification that defines how a request, a response or an error object is constructed.

This template depends on the "JKI JSON-RPC Specification" package which conforms to JSON-RPC Specification 2.0.

Do I need to know about JSON-RPC to use the template?

No. The goal of this template is to facilitate the construction of synchronous or asynchronous public methods from any datatype into a valid JSON-RPC request. The process will receive the request and route it to be handled. The response will then be packaged into a valid JSON-RPC response object and sent back to the caller.

Getting Started

First, install the package. Once installed, launch the SMO editor from the Tools/JKI State Machine Objects menu. Second, select the jsonRPC template and create a new subsystem following the SMO Editor instructions. Your new SMO will be scripted. Wait for it to finish the task and then navigate to your project to find your new JSON-RPC-enabled subsystem.

Test Launcher

insert video here

Clone this wiki locally