Skip to content

sandeshShahapur/json-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Validation Tool

This is a JavaScript-based tool for validating JSON strings through lexical analysis and syntactical analysis.

Try it out

Overview

JSON (JavaScript Object Notation) is a lightweight data-interchange format commonly used for data exchange between a server and a web application. Validating JSON strings is essential to ensure data integrity and compatibility between systems.

This tool performs lexical analysis to tokenize the input string and syntactical analysis to check the structure and validity of the JSON data as per the JSON specification.

Implementation technique

Lexical Analysis: Tokenizes the input JSON string to identify individual tokens such as primitive data types and keywords.

Syntactical Analysis: Checks the structure and syntax of the JSON string to ensure it conforms to the JSON specification. Error Handling: Provides error messages for invalid JSON strings.


It additionally constructs and returns the equivalent JavaScript value of the inputted JSON string.

About

A JavaScript-based tool for validating JSON strings

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published