From 2c5eb485e1da7b26a3db76ebfbd7019b6ee45907 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Fri, 13 Jun 2025 14:13:54 +0200 Subject: Maybe fixed the index accessor --- modules/codec-json/c++/json.tmpl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/codec-json/c++/json.tmpl.hpp b/modules/codec-json/c++/json.tmpl.hpp index 956393f..f37b440 100644 --- a/modules/codec-json/c++/json.tmpl.hpp +++ b/modules/codec-json/c++/json.tmpl.hpp @@ -266,7 +266,7 @@ struct json_encode, FromEncode> { using Schema = schema::FixedArray; static error_or encode_at(const data& from, buffer& to, std::array& index, uint64_t depth, bool pretty){ - auto eov = json_encode::encode(from.at(index), to, depth, pretty); + auto eov = json_encode::encode(from.at({index}), to, depth, pretty); if(eov.is_error()){ return eov; } -- cgit v1.2.3