JSON Namespace

JavaScript Object Notation (JSON) is an open data interchange format, that transmits data objects consisting of attribute–value pairs and array data types (or any other serializable value). It is a very common data format, with a diverse range of applications, such as serving as a replacement for XML in AJAX systems.

As JSON is a language-independent data format it is the ideal format to communicate across nodes or even different blockchains.

In our system the websocket is completely based on JSON messages.

A test client for the websocket is available on: http://coin.codeb.io/websocket.aspx

To make it easier for the application developer to construct sample JSON messages we introduced the JSON Namespace on: https://coin.codeb.io/json.asmx

JSON Messages can be submitted to the websocket, the web service API JSON or posted to: https://coin.codeb.io/post.aspx

Our web socket examples will always refer to the JSON web service API to create sample JSON Messages!

EncryptedPasswordJSONToken

With the function EncryptedPasswordJSONToken you can encrypt the password for your server hosted key with the public key of the server. The resulting package can be send via the websocket to the server to unlock your key. The result package is a base64 encoded JSON-WT AuthToken which can be decoded via https://coin.codeb.io/json.asmx?op=DecodeJWT or https://jwt.io/

CreateSimpleCommand

The function CreateSimpleCommand can be used to create command JSON. This can be used as a template add more parameter or send as it is to the websocket.

The function comes with two optional parameter OptionalAuthToken and OptionalPassword. If you created already a JSON-WT you can enter it in OptionalAuthToken.

In case you need to unlock the server key you can leave OptionalAuthToken empty and enter your password. The resulting token will unlock your server hosted key, fill the OptionalAuthToken field and return the complete package.