Use stringify to escape newlines on value.

Fixes #1
This commit is contained in:
Peter Morton 2023-11-07 12:26:00 -06:00
parent 816e0a1381
commit 0cce4f8085

View File

@ -125,7 +125,7 @@ router.post("/", async (req, res, next) => {
{
"@type" : "vcfg:PropertyUpdateOrCreate",
"vcfg:name" :"${property.name}",
"vcfg:value" : "${property.value}"
"vcfg:value" : ${JSON.stringify(property.value)}
}
]`;