This repository contains a JSON RPC implementation that is built on top of JSMN JSON parser. It does have some dependencies, but only the most basic ones. It is mean for use in embedded environments, but of couse, doesn't have to be.
The API includes only 3 methods:
rpc_install_methods() --- connects C methods to their RPC names.
rpc_handle_command() --- parses and executes a JSON buffer.
workstatus_to_string() --- converts error codes to readable messages.
NOTE: This project uses my branch of JSMN, which can be found here.
See example.c for sample usage. Build example by running build.