jakartaee / jakartaee/jsonp-api

JsonParser should be capable of parsing keys not surrounded by "

Open
#262 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
160
Forks
64
Avg merge
4d 5h
Merged PRs (30d)
4

Description

JsonParser should be capable of parsing keys without ", assuming that they are of type String (as is done in JS), rather than rejecting them and requiring them to be surrounded with ".

As in:
`"{\"10729945\":{2:null},\"10730556\":{1:null},\"10729026\":{3:null}}"`

P.S. The benefit is 2 bytes less per key (e.g., 1 vs. "1") used in network traffic, thus making a small performance & bandwidth usage optimization, that would make a lot of apps better at once (given that this is a very generic thing).

Contributor guide

Open the contributing guide

Research direction

Start by locating JsonParser and its parser tests. Determine how object keys are currently recognized, then add coverage for unquoted String keys while preserving quoted-key parsing; done means the supplied example parses successfully and existing valid JSON behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.