Skip to content

Proposal/Reference: CSONH (Strict, Data-Only Subset for Configuration) #204

@pythagorean

Description

@pythagorean

Hi all,

I've been working on a strict, security-focused subset of CSON called CSONH (Concise Structured Object Notation for Humanity).

The goal was to solve the "security by design" problem for configuration files without losing the readability of CSON.

Key Differences from standard CSON:

  • Data-Only: No code execution, no expressions, no interpolation.
  • Strict Parsing: Rejects "Norway Problem" ambiguities (case-sensitive booleans).
  • Zero Dependency: Standalone parsers for Python and JS that do not require the CoffeeScript compiler.

It is effectively "Safe Mode CSON."

I am sharing this here in case anyone looking for a CSON parser needs strict security guarantees (e.g., loading untrusted config files).

Spec & Impl: https://github.com/pythagorean/csonh

Thanks for the inspiration of the original format!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions