v0.8.2
json5
Eine leichte Bibliothek zum Codieren und Decodieren von JSON5 mit Kommentar- und Nachkomma-Unterstützung.
20Likes 13.30030-Tage-Downloads150Pub-Punkte
AndroidiOSWebmacOSWindowsLinux
JSON5 für Dart und Flutter
Englischer Projektschnappschuss. Aktuelle Inhalte auf 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);
}
Nach Anwendungsfall filtern, Aktivität vergleichen und vor der Nutzung das Originalprojekt prüfen.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗