[jsonpath] change code-fence so it doesn't overlap with logo (#16432)

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
This commit is contained in:
jimtng 2024-02-20 22:48:53 +10:00 committed by GitHub
parent 03af8c2af9
commit 5682f7ab55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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`.