From: jimtng <2554958+jimtng@users.noreply.github.com> Date: Tue, 20 Feb 2024 12:48:53 +0000 (+1000) Subject: [jsonpath] change code-fence so it doesn't overlap with logo (#16432) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=5682f7ab5535057d403a84fedbec24b3a7579a62;p=openhab-addons.git [jsonpath] change code-fence so it doesn't overlap with logo (#16432) Signed-off-by: Jimmy Tanagra --- diff --git a/bundles/org.openhab.transform.jsonpath/README.md b/bundles/org.openhab.transform.jsonpath/README.md index 35c648854f..d2b71f6028 100644 --- a/bundles/org.openhab.transform.jsonpath/README.md +++ b/bundles/org.openhab.transform.jsonpath/README.md @@ -4,9 +4,7 @@ Extracts values from a JSON string using a [JsonPath](https://github.com/jayway/ Given the following JSON string: -``` -[{ "device": { "location": "Outside", "status": { "temperature": 23.2 }}}] -``` +`[{ "device": { "location": "Outside", "status": { "temperature": 23.2 }}}]` The expression `$.device.location` extracts the string `Outside`. The JsonPath expression `$.device.status.temperature` extracts the string `23.2`.