Merged
Conversation
Introduce a new JSON plugin for reading and writing DataFrames in JSON
format, following the same architecture as the existing CSV and Parquet
plugins.
Reader supports:
- JSON array of objects: [{"a":1}, {"a":2}]
- JSON-Lines format (one object per line)
- Single JSON object (produces one-row DataFrame)
- Type inference: Int64, Double, Bool, String with automatic widening
- Null handling via JSON null values and missing keys
- Categorical compression for low-cardinality string columns
Writer produces pretty-printed JSON array of objects with:
- Native JSON types for Int64, Double, Bool, String
- JSON null for null values (validity bitmap)
- Date/Timestamp serialized as integer values
Files added:
- libs/json/json.hpp — header-only reader/writer implementation
- libs/json/json.cpp — plugin entry point (ibex_register)
- libs/json/json.ibex — import stub for `import "json";`
- libs/json/CMakeLists.txt — shared library build config
- tests/test_json.cpp — 16 Catch2 test cases (read + write + round-trip)
Dependencies:
- nlohmann/json v3.11.3 (header-only, MIT) added via FetchContent
https://claude.ai/code/session_01DaBQq6tTYw6uK1gEqu6EVJ
Add JSON plugin references across all documentation: - docs/index.html: add write_json to output plugins list and code example - README.md: add write_json to writing output section, add bundled plugins table with all four plugins (csv, json, parquet, udp), add JSON usage notes - SPEC.md: expand Section 12.1 with JSON plugin table and read_json docs (formats, type inference, null handling), add JSON import examples in Section 13.4 - INSTALL.md: rename CSV section to "CSV and JSON Plugins", add JSON usage example https://claude.ai/code/session_01DaBQq6tTYw6uK1gEqu6EVJ
The code sample showed read_csv but not read_json. Add the extern declaration and a usage line so both reader functions are visible. https://claude.ai/code/session_01DaBQq6tTYw6uK1gEqu6EVJ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.