R
R
rockwell3232021-06-12 14:23:28
JavaScript
rockwell323, 2021-06-12 14:23:28

How to decode buffer using json schema?

There is a schema like this:

[
  {
    "name": "name",
    "version": 1,
    "keySchema": "string",
    "valueSchema": {
       "name": {
        "type": "string",
        "index": 1
       }
    }
  }
]

and the buffer message:
<Buffer ae 02 94 02 80 a1 30 92 c3 9e 93 c2 a2 43 4b 94 ce 00 01 86 9f 23 03 93 92 00 01 92>

how do i decode the message using the schema?
ps I google, but to no avail

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question