mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[jsonpath] change code-fence so it doesn't overlap with logo (#16432)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
8cd24d003b
commit
a6c6645784
@ -4,9 +4,7 @@ Extracts values from a JSON string using a [JsonPath](https://github.com/jayway/
|
|||||||
|
|
||||||
Given the following JSON string:
|
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 expression `$.device.location` extracts the string `Outside`.
|
||||||
The JsonPath expression `$.device.status.temperature` extracts the string `23.2`.
|
The JsonPath expression `$.device.status.temperature` extracts the string `23.2`.
|
||||||
|
Loading…
Reference in New Issue
Block a user