SCON v1.0.0 — JSON for OpenSCAD
A lightweight library that brings structured configuration (maps/objects) to OpenSCAD using [key, value] pair lists.
Features
scon_value— path-based extraction from nested SCON structuresscon_make— wrap data into callable config objects with inheritancescon_to_json— serialize SCON back to JSON stringsscon_from_json— convert native JSON imports (OpenSCAD dev builds)- JSON→SCON converters — Python and JS scripts (Node, Bun, QuickJS)
Getting started
include <scon.scad>
cfg = scon_make([["radius", 1], ["center", [0, 0, 0]]]);
r = cfg(["radius"]); // 1
c = cfg(["center"]); // [0, 0, 0]
fn = cfg(["fn"], 32); // 32 (missing value fallback)See the README for full documentation and examples.