mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-26 00:40:05 +01:00
[SF 2520679] JSON strings enclosed in single quotes
[SF 2520849] Dynamic/Pair support
This commit is contained in:
@@ -423,12 +423,12 @@ Var Var::parseArray(const std::string& val, std::string::size_type& pos)
|
||||
|
||||
std::string Var::parseString(const std::string& val, std::string::size_type& pos)
|
||||
{
|
||||
static const std::string STR_STOP("'\"");
|
||||
static const std::string STR_STOP("\"");
|
||||
static const std::string OTHER_STOP(" ,]}"); // we stop at space, ',', ']' or '}'
|
||||
|
||||
bool inString = false;
|
||||
//skip optional ' "
|
||||
if (val[pos] == '\'' || val[pos] == '"')
|
||||
if (val[pos] == '"')
|
||||
{
|
||||
inString = true;
|
||||
++pos;
|
||||
|
||||
Reference in New Issue
Block a user