openhab-addons/bundles/org.openhab.transform.bin2json
Holger Friedrich 6e49c6e6ec
[transform] Code optimization for Java17: instanceof matching and multiline strings (#15483)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-08-24 06:41:36 +02:00
..
src/main [transform] Code optimization for Java17: instanceof matching and multiline strings (#15483) 2023-08-24 06:41:36 +02:00
NOTICE added migrated 2.x add-ons 2020-09-21 03:37:19 +02:00
pom.xml Apply spotless 2023-07-24 01:20:31 +02:00
README.md added migrated 2.x add-ons 2020-09-21 03:37:19 +02:00

Binary To JSON Transformation Service

Transforms the input by Java Binary Block Parser syntax.

See details about syntax from JBBP homepage

Example

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

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

Usage as a Profile

Profiles are not supported by this transformation.