projects
/
platform
/
upstream
/
iotivity.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9f016f
)
Revert "Fix to remove quotes around array of strings as attribute value. Patch 2...
author
Erich Keane
<erich.keane@intel.com>
Wed, 8 Oct 2014 22:17:25 +0000
(15:17 -0700)
committer
Erich Keane
<erich.keane@intel.com>
Wed, 8 Oct 2014 22:17:25 +0000
(15:17 -0700)
This reverts commit
f9f016f533d200725ad39f1af34b67af529a8949
.
Change-Id: Idbc9ddb9b93e189f3fb55c1cb0ede0d0a4989303
include/OCApi.h
patch
|
blob
|
history
diff --git
a/include/OCApi.h
b/include/OCApi.h
index f69fe3da4d39cecbbd54f51602310a9f64578a89..7219c6a6d57ee9d5dd036d82ec748952dcaf0906 100644
(file)
--- a/
include/OCApi.h
+++ b/
include/OCApi.h
@@
-283,13
+283,13
@@
namespace OC
{
std::ostringstream json;
- json << "[";
+ json << "
\"
[";
if(v.size() != 0)
{
std::copy(v.begin(), v.end() - 1, std::ostream_iterator<T>(json, ","));
json << v.back();
}
- json << "]";
+ json << "]
\"
";
return json.str();
}
@@
-346,7
+346,7
@@
namespace OC
std::ostringstream json;
int first = 1;
- json << "[";
+ json << "
\"
[";
for(auto b: bools)
{
if(first)
@@
-359,7
+359,7
@@
namespace OC
b ? json << ",true" : json << ",false";
}
}
- json << "]";
+ json << "]
\"
";
return json.str();
}