From 357bfdcea42e85ab6a768a6f79adf45b25076ddc Mon Sep 17 00:00:00 2001 From: FourierTransformer Date: Tue, 30 Jul 2024 21:48:09 -0500 Subject: [PATCH] re-unescaping --- src/luasimdjson.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/luasimdjson.cpp b/src/luasimdjson.cpp index 77f2b7e..ca598c1 100644 --- a/src/luasimdjson.cpp +++ b/src/luasimdjson.cpp @@ -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.escaped_key(); + std::string_view s = field.unescaped_key(); lua_pushlstring(L, s.data(), s.size()); convert_ondemand_element_to_table(L, field.value()); lua_settable(L, -3);