Skip to content

Latest commit

 

History

History
64 lines (34 loc) · 1.63 KB

README.md

File metadata and controls

64 lines (34 loc) · 1.63 KB

JSONrpc

JSONrpc is a LabVIEW library for generating and parsing JSON-RPC messages. Initially developed for use by Instrument Framework

Getting Started

  • JSONrpc is developed and packaged in LabVIEW 2019
  • Download and install using the VI Package Manager as described here

Usage

Core Methods

Create Request.vi

Create Request

Parse Request.vi

Parse Request

Create Response.vi

Create Response

Parse Response.vi

Parse Response

Parse Params.vi

Parse Params

This VI breaks out RPC parameters into names and parameter objects, but does not convert the objects to LV data.

Data Manipulation

JSON to LVtype.vi

JSON to LVtype

By default, Create Request.vi and Create Response.vi will convert LV data to a string using whatever strategy is used by JSONtext. JSON to LVType.vi assists in converting a string back to a LV datatype.

Flatten to String.vi

Flatten to String

Flatten to String Details

Unflatten from String.vi

Unflatten from String

Examples

Example 1

Example 2

Contributing

Contact Patrick Irvin

License

BSD-3