v0.8.2
json5
주석과 끝에 쉼표를 지원하는 JSON5 인코딩 및 디코딩을 위한 가벼운 라이브러리입니다.
20좋아요 1.3만30일 다운로드150Pub 점수
AndroidiOSWebmacOSWindowsLinux
다트 및 플러터용 JSON5
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
This Dart package is a port of JSON5, originally written in pure JavaScript.
It follows the same algorithms and specifications as the original JSON5, ensuring identical behavior.
However, Dart has different naming conventions—see the example below.
import 'package:json5/json5.dart';
void main() {
var obj = JSON5.parse('''
{
/* Comment block */
name: { first: "Phat" },
lang: ["C++", "Dart", "Kotlin"],
nums: [NaN, Infinity, -Infinity]
} // End object
''');
var compact = JSON5.stringify(obj);
print(compact);
var pretty = JSON5.stringify(obj, space: 2);
print(pretty);
}
사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗