Commit aaa844b8 authored by j.hoerdt's avatar j.hoerdt
Browse files

fix double quotes in identifierValue

parent 07f30175
......@@ -72,7 +72,7 @@ class Sensor {
add_attribute(body,
"1",
"21.T11148/8eb858ee0b12e8e463a5",
new JsonPrimitive("{\"identifier-general-with-type\":{\"identifierValue\":\""+ rec.get("s.pid") +"\", \"identifierType\":\"Handle\"}}")
new JsonPrimitive("{\"identifier-general-with-type\":{\"identifierValue\":\""+ rec.get("s.pid").asString() +"\", \"identifierType\":\"Handle\"}}")
);
}
add_attribute(body,
......@@ -109,7 +109,7 @@ class Sensor {
add_attribute(body,
"8",
"21.T11148/55f8ebc805e65b5b71dd",
new JsonPrimitive("\""+ rec.get("description") +"\"")
new JsonPrimitive("\""+ rec.get("description").asString() +"\"")
);
}
add_attribute(body,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment