@@ -58,19 +58,21 @@ If you're using Azure IoT Hub Device SDKs, you can still use the JsonPathContent
58
58
59
59
``` json
60
60
61
- "templateType" : " IotJsonPathContentTemplate" ,
62
- "template" : {
63
- "typeName" : " heartrate" ,
64
- "typeMatchExpression" : " $..[?(@Body.heartRate)]" ,
65
- "timestampExpression" : " $.endDate" ,
66
- "values" : [
67
- {
68
- "required" : " true" ,
69
- "valueExpression" : " $.Body.heartRate" ,
70
- "valueName" : " hr"
71
- }
72
- ]
73
- }
61
+ {
62
+ "templateType" : " IotJsonPathContentTemplate" ,
63
+ "template" : {
64
+ "typeName" : " heartrate" ,
65
+ "typeMatchExpression" : " $..[?(@Body.heartRate)]" ,
66
+ "timestampExpression" : " $.endDate" ,
67
+ "values" : [
68
+ {
69
+ "required" : " true" ,
70
+ "valueExpression" : " $.Body.heartRate" ,
71
+ "valueName" : " hr"
72
+ }
73
+ ]
74
+ }
75
+ }
74
76
75
77
```
76
78
@@ -100,20 +102,23 @@ If you're using Azure IoT Hub Device SDKs, you can still use the JsonPathContent
100
102
``` json
101
103
102
104
{
105
+ "templateType" : " IotJsonPathContentTemplate" ,
106
+ "template" : {
103
107
"typeName" : " bloodpressure" ,
104
108
"typeMatchExpression" : " $..[?(@Body.systolic && @Body.diastolic)]" ,
105
109
"values" : [
106
- {
110
+ {
107
111
"required" : " true" ,
108
112
"valueExpression" : " $.Body.systolic" ,
109
113
"valueName" : " systolic"
110
- },
111
- {
114
+ },
115
+ {
112
116
"required" : " true" ,
113
117
"valueExpression" : " $.Body.diastolic" ,
114
118
"valueName" : " diastolic"
115
- }
119
+ }
116
120
]
121
+ }
117
122
}
118
123
119
124
```
0 commit comments