Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add comma and comment options

オープン
#25 コメント 5 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript, json
領域
api

調査の方向性

Start by reading the JSON.parseImmutable proposal and the issue’s examples of trailing-comma and comment options. Determine how those input forms fit the proposal’s parsing behavior and stated safety and lossy-round-trip concerns; done means a clear decision and specified behavior for the proposed toggles.

索引モデルが issue の本文から書いたものです。

説明

There are MANY libraries that allow comments and trailing commas over JSON. That's almost all these projects do.

I propose we allow a form of the https://en.wikipedia.org/wiki/Robustness_principle and alleviate cases where loose input is acceptable. Note: not all cases will be acceptable due to it not being safe to treat these input as safe to pass through JSON to a different JSON parser. It also means that round trips may be seen as "lossy" and the comments etc. should not be kept.

I do not propose adding the plethora of other options some parsers allow.

A simple set of toggles like { trailingCommas: 'allow', lineComments: 'allow', blockComments: 'allow' } would greatly reduce need on some things that are in the 500 million+ downloads a week for these kinds of packages

Image Image
主要言語
HTML
スター
52
フォーク
4
平均マージ
17時間 35分
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tc39/proposal-json-parseimmutable のほかの issue

tc39/proposal-json-parseimmutable の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。