llnl / llnl/conduit

Writing then reading an empty node to JSON generates error on the read

Open
#501 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
248
Forks
72
Avg merge
1d 16h
Merged PRs (30d)
15

Description

Writing an empty node out to a json file produces invalid json. Currently the file consists of a single line of:
null

Trying to read this node back into conduit generates an error in the json parser. Can this be updated some minimal set of json so its still valid when read in?
Maybe just:
{}

If this sounds acceptable I can make the change and do a pull request.

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

Reproduce the empty-node write/read scenario described in issue #501. Trace the JSON serialization and parser entry points; done means the written file remains valid JSON and can be read back without an error, using the agreed minimal representation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, json
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.