gbowne1 / gbowne1/jsonify

Object key print in formatter weak and incorrect

Open
#23 0 comments 0 reactions 0 assignees View on GitHub
bug documentation enhancement good first issue help wanted question
Dominant language
C++
Stars
4
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Theres a object key printing bug in printJson (jsonformatter.cpp)

os << get_color(AnsiColor::KEY) << '"' << kv.first << "\":" << get_reset();

We currently print ":" without space after colon, then later add space only in non-compact mode:cpp

os << (!compact ? " " : "");

We should print a space after : colon

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in jsonformatter.cpp at the printJson entry point and inspect the shown object-key output and following compact-mode conditional. Verify the expected spacing in compact and non-compact output; the issue is done when object keys print the intended colon spacing without breaking compact formatting.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.