From a701b81486c3bc851d9de700b0aa940131abf85c Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Fri, 20 Sep 2024 12:01:33 -0300 Subject: [PATCH] fix --- vlib/v/gen/c/json.v | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vlib/v/gen/c/json.v b/vlib/v/gen/c/json.v index 8380a3fb9f78be..4bbfc783bf39c0 100644 --- a/vlib/v/gen/c/json.v +++ b/vlib/v/gen/c/json.v @@ -669,9 +669,7 @@ fn (mut g Gen) gen_struct_enc_dec(utyp ast.Type, type_info ast.TypeInfo, styp st } else { // Now generate decoders for all field types in this struct // need to do it here so that these functions are generated first - if !name[0].is_capital() { - g.gen_json_for_type(field.typ) - } + g.gen_json_for_type(field.typ) dec_name := js_dec_name(field_type) if is_js_prim(field_type) { tmp := g.new_tmp_var()