EnglishFrenchSpanish

Ad


OnWorks favicon

jsonrpcstub - Online in the Cloud

Run jsonrpcstub in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command jsonrpcstub that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


jsonrpcstub - genearate stubs for the libjson-rpc-cpp framework.

SYNOPSIS


jsonrpcstub specfile.json [--cpp-server=namespace::ClassName]
[--cpp-server-file=classqname.h] [--cpp-client=namespace::ClassName] [--cpp-client-
file=classname.h] [--js-client=ClassName] [--js-client-file=classname.js] [-h] [-v]
[--version]

DESCRIPTION


jsonrpcstub is a tool to generate C++ and JavaScript classes from a procedure
specification file.

SPECIFICATION SYNTAX
The specifictaion file is a JSON file containing all available JSON-RPC methods and
notifications with their corresponding parameters and return values contained in a
top-level JSON array.

[
{
"name": "method_with_positional_params",
"params": [3,4],
"returns": 7
},
{
"name": "method_with_named_params",
"params": {"param1": 3, "param2": 4},
"returns": 7
},
{
"name": "notification_without_parmas"
}
]

The literal in each "params" and "returns" section defines the corresponding type. If
the "params" contains an array, the parameters are accepted by position, if it contains an
object, they are accepted by name.

OPTIONS


-h Print usage information.

-v Print verbose information during generation.

--version
Print version info and exit.

--cpp-server=ClassName
Creates a Abstract Server class. Namespaces can be provided using the :: notation
(e.g. ns1::ns2::Classname).

--cpp-server-file=filename.h
Defines the filename to use when generating the C++ Abstract Server class. If this
is not provided, the lowercase classname is used.

--cpp-client=ClassName
Creates a C++ client class. Namespaces can be provided using the :: notation (e.g.
ns1::ns2::Classname).

--cpp-client-file=filename.h
Defines the filename to use when generating the C++ client class. If this is not
provided, the lowercase classname is used.

--js-client=ClassName
Creates a JavaScript client class. No namespaces are supported in this option.

--js-client-file=filename.js
Defines the filename to use when generating the JavaScrip client class.

EXAMPLES


Generate C++ Stubs for Server and Client, the classes will be named AbstractStubServer and
StubClient:

jsonrpcstub spec.json --cpp-server=AbstractStubServer --cpp-client=StubClient

Generate JavaScript Client class MyRpcClient into file someclient.js:

jsonrpcstub spec.json --js-client=MyRpcClient --js-client-file=someclient.js

EXIT STATUS


This command returns 0 if no error occurred. In any other case, it returns 1.

Use jsonrpcstub online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    KompoZer
    KompoZer
    KompoZer is a wysiwyg HTML editor using
    the Mozilla Composer codebase. As
    Nvu's development has been stopped
    in 2005, KompoZer fixes many bugs and
    adds a f...
    Download KompoZer
  • 2
    Free Manga Downloader
    Free Manga Downloader
    The Free Manga Downloader (FMD) is an
    open source application written in
    Object-Pascal for managing and
    downloading manga from various websites.
    This is a mirr...
    Download Free Manga Downloader
  • 3
    UNetbootin
    UNetbootin
    UNetbootin allows you to create bootable
    Live USB drives for Ubuntu, Fedora, and
    other Linux distributions without
    burning a CD. It runs on Windows, Linux,
    and ...
    Download UNetbootin
  • 4
    Dolibarr ERP - CRM
    Dolibarr ERP - CRM
    Dolibarr ERP - CRM is an easy to use
    ERP and CRM open source software package
    (run with a web php server or as
    standalone software) for businesses,
    foundations...
    Download Dolibarr ERP - CRM
  • 5
    SQuirreL SQL Client
    SQuirreL SQL Client
    SQuirreL SQL Client is a graphical SQL
    client written in Java that will allow
    you to view the structure of a JDBC
    compliant database, browse the data in
    tables...
    Download SQuirreL SQL Client
  • 6
    Brackets
    Brackets
    Brackets is a free, modern open-source
    text editor made especially for Web
    Development. Written in HTML, CSS, and
    JavaScript with focused visual tools and
    prepr...
    Download Brackets
  • 7
    Free Pascal Compiler
    Free Pascal Compiler
    A 32/64/16-bit Pascal compiler for
    Win32/64/CE, Linux, Mac OS X/iOS,
    Android, FreeBSD, OS/2, Game Boy
    Advance, Nintendo NDS and DOS;
    semantically compatible wi...
    Download Free Pascal Compiler
  • More »

Linux commands

Ad