Diysb Tools

JSON मान्य करें

JSON स्ट्रिंग की वैधता जांचें।

JSON टूल्स

JSON सत्यापन क्या है?

JSON (JavaScript Object Notation) एक हल्का डेटा-इंटरचेंज फ़ॉर्मेट है। JSON सत्यापन यह सुनिश्चित करता है कि डेटा की संरचना JSON मानक के अनुरूप हो। एक मान्य JSON ऑब्जेक्ट में ये चीज़ें होनी चाहिए: दोहरे उद्धरण चिह्नों में संलग्न प्रॉपर्टी के नाम, उचित रूप से संतुलित कर्ली ब्रेसेज़, अंतिम कुंजी-मान युग्म के बाद कोई अनुगामी अल्पविराम नहीं, और ऑब्जेक्ट्स और ऐरे का उचित नेस्टिंग।

इनपुट JSON
मान्यता परिणाम
JSON मान्य करें उदाहरण

Valid JSON Object

This example shows a correctly formatted JSON object. All property names and string values are enclosed in double quotes, and the overall structure is properly balanced with opening and closing braces.

{ "name": "John", "age": 30, "city": "New York" }
{ "name": "John", "age": 30, "city": "New York" }
✅ Valid JSON
✅ Valid JSON

Invalid JSON Missing Quotes

This example demonstrates an invalid JSON object where the property names are not enclosed in double quotes. According to the JSON standard, property names must always be enclosed in double quotes. Omitting the quotes will result in a syntax error.

{ name: "John", age: 30, city: "New York" }
{ name: "John", age: 30, city: "New York" }
❌ Error: Expected property name or '}' in JSON
❌ Error: Expected property name or '}' in JSON

Invalid JSON with Trailing Comma

This example shows an invalid JSON object with a trailing comma after the last key-value pair. In JSON, trailing commas are not allowed because they create ambiguity when parsing the data structure.

{ "name": "John", "age": 30, "city": "New York", }
{ "name": "John", "age": 30, "city": "New York", }
❌ Error: Expected double-quoted property name
❌ Error: Expected double-quoted property name