Skip to content

Commit 89ca331

Browse files
committed
Make sure we support non ascii characters in map types
1 parent 71762ad commit 89ca331

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/json_struct/json_struct.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8087,7 +8087,9 @@ struct TypeHandlerMap
80878087
return error;
80888088
while (context.token.value_type != Type::ObjectEnd)
80898089
{
8090-
Key key(context.token.name.data, context.token.name.size);
8090+
std::string str;
8091+
Internal::handle_json_escapes_in(context.token.name, str);
8092+
Key key(str.data(), str.size());
80918093
Value v;
80928094
error = TypeHandler<Value>::to(v, context);
80938095
to_type[std::move(key)] = std::move(v);

0 commit comments

Comments
 (0)