openhab-docs/_addons_transformations/bin2json
openHAB Build Server 03e15f4243 Updated external content (Jenkins build 3069) 2026-02-04 05:37:51 +00:00
..
readme.md Updated external content (Jenkins build 3069) 2026-02-04 05:37:51 +00:00

readme.md

id label title type description install
bin2json Binary to JSON Binary to JSON - Transformation Services transform Transforms input using the Java Binary Block Parser (JBBP) syntax. auto

{% include base.html %}

Binary to JSON Transformation Service

Transforms input using the Java Binary Block Parser (JBBP) syntax.

See details about the syntax on the JBBP homepage.

Example

Let's assume we have received a string containing bytes in hexadecimal string format 03FAFF and we want to convert the binary data to JSON. The binary data contains 3 bytes and the strict data format is the following: byte a; byte b; ubyte c;.

The Binary to JSON converter will return the following result: {"a":3,"b":-6,"c":255}

Usage as a Profile

Profiles are not supported by this transformation.