melange-community / melange-community/jsonkit

Suggestion: additional expressive attributes

Open
#64 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
OCaml
Stars
24
Forks
7
Avg merge
1d 15h
Merged PRs (30d)
5

Description

Melange JSON could provide 2 features that I haven’t seen in other OCaml serialization libraries:

  • [@skip_serialize_if Option.is_none]
  • { … extra: (string * Json.t) list } (type TBD) that contains a grab bag of the remaining fields we didn’t parse

These are present in Rust’s serde and allow a lot more use cases to be expressed.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names Melange JSON's PPX and serialization behavior but no files or tests. Start by locating the existing PPX and encoder/decoder entry points, then compare their current attribute and field-handling APIs with the two requested features. Done means both behaviors have an agreed type and semantics and are supported consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
ocaml
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.