v.22.4Improvement
Add input_format_json_read_bools_as_numbers setting to parse bools as numbers in JSON
Add new setting input_format_json_read_bools_as_numbers that allows to infer and parse bools as numbers in JSON input formats. It's enabled by default. Suggested by @alexey-milovidov. #35735 (Kruglov Pavel).Why it matters
This feature addresses the need to handle JSON inputs where boolean values are represented as numbers, improving flexibility and compatibility when importing JSON data into ClickHouse.How to use it
The settinginput_format_json_read_bools_as_numbers is enabled by default. Users can disable or enable it by setting it explicitly in the client or server configuration. For example:SET input_format_json_read_bools_as_numbers = 1;or
SET input_format_json_read_bools_as_numbers = 0;