From b6a51fe4424d360ffdf8779c4aaf25658f670600 Mon Sep 17 00:00:00 2001 From: ju-klein <29863168+ju-klein@users.noreply.github.com> Date: Wed, 4 Mar 2026 18:19:53 +0100 Subject: [PATCH] CastVAlueToJson: fixed conditional leading to json type error 302 --- src/functions/input_parser.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/functions/input_parser.cpp b/src/functions/input_parser.cpp index 3696f335..9fbbea1f 100644 --- a/src/functions/input_parser.cpp +++ b/src/functions/input_parser.cpp @@ -118,7 +118,10 @@ nlohmann::json CastValueToJson(const duckdb::Value& value) { } } } - + else { + result = nlohmann::json(value.ToString()); + } + return result; }