Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

JSON syntax checker

Project Description

Part of the Using JSON Schema project.

The ‘hello world’ of JSON processing, check the syntax of a JSON file.

For command line/script use, a console message is displayed and the process exits with 0 for success, 1 for failure.

Command Line / Script Use

Usage: jsonsyntax filename - filename name of file to check (path optional)

To run the syntax checker (command line or script) against the file example.json use,

jsonsyntax example.json

Library Function Use

To use the syntax checker as a library function, call the syntaxCheck function in a try/except block. For example,

from jsonsyntax import checkSyntax
try :
    checkSyntax ("example.json")
    print ("Valid JSON file")
except as e:
    print ("Error: " + e.message);


Installation using pip for Python 2 (2.7) or Python 3.

pip install ujs-jsonsyntax



Release History

Release History

This version
History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date (7.7 kB) Copy SHA256 Checksum SHA256 Source Jul 12, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting