Skip to content

Commit

Permalink
escaping json
Browse files Browse the repository at this point in the history
  • Loading branch information
FourierTransformer committed Jul 30, 2024
1 parent 9672de1 commit efcd844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/luasimdjson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void convert_ondemand_element_to_table(lua_State *L, ondemand::value element) {
case ondemand::json_type::object:
lua_newtable(L);
for (auto field : element.get_object()) {
std::string_view s = field.unescaped_key();
std::string_view s = field.escaped_key();
lua_pushlstring(L, s.data(), s.size());
convert_ondemand_element_to_table(L, field.value());
lua_settable(L, -3);
Expand Down

0 comments on commit efcd844

Please sign in to comment.