Skip to content

Commit 0725aa6

Browse files
committed
decode_traits
1 parent 7162e7f commit 0725aa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/jsoncons/reflect/decode_traits.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ basic_json<CharT> to_basic_json_container(basic_staj_cursor<CharT>& cursor,
9999
goto begin_array;
100100
}
101101
case staj_event_type::key:
102-
key = cursor.current().template get<jsoncons::string_view>(ec);
102+
key = cursor.current().template get<std::basic_string<CharT>>(ec);
103103
break;
104104
case staj_event_type::string_value:
105105
stack.back()->try_emplace(key, cursor.current().template get<jsoncons::string_view>(ec), cursor.current().tag());

0 commit comments

Comments
 (0)