v0.8.2
json5
एक हल्का लाइब्रेरी जो कॉमेंट्स और ट्रेलिंग कमा समर्थन के साथ JSON5 को एन्कोड और डीकोड करती है।
20लाइक 13.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 ↗