From f2a011d54eeeceaff955c24c3fad344b479c468a Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Fri, 13 Jun 2025 14:55:58 +0200 Subject: Changed to forstio data type --- modules/codec-json/c++/json.tmpl.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/codec-json/c++/json.tmpl.hpp b/modules/codec-json/c++/json.tmpl.hpp index f37b440..1cf566e 100644 --- a/modules/codec-json/c++/json.tmpl.hpp +++ b/modules/codec-json/c++/json.tmpl.hpp @@ -265,8 +265,8 @@ template 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); + static error_or encode_at(const data& from, buffer& to, data, FromEncode>& index, uint64_t depth, bool pretty){ + auto eov = json_encode::encode(from.at(index), to, depth, pretty); if(eov.is_error()){ return eov; } @@ -274,7 +274,7 @@ struct json_encode, FromEncode> { } template - static error_or encode_level(const data& from, buffer& to, std::array& index, uint64_t depth, bool pretty){ + static error_or encode_level(const data& from, buffer& to, data, FromEncode>& index, uint64_t depth, bool pretty){ { auto err = to.push('['); if(!err.template is_type()){ -- cgit v1.2.3