JSON Library 1.0


Overview

This is a quick JSON parser I hacked together in C. I never wound up needing it. It has three parts:

Highlights of JSON Library:

The JSON Library web page is here:

http://www.midwinter.com/~larry/programming/json/
And you can download a zip file containing the source code here:
http://www.midwinter.com/~larry/programming/json/json.zip

Changes / Extensions to JSON Syntax

I slightly extended the JSON syntax. Here are the differences:

Scanner:

Parser:

Licensing

Here's the license:

/*
** [BEGIN NOTICE]
**
** JSON Library Copyright (C) 2006-2007 Larry Hastings
**
** This software is provided 'as-is', without any express or implied warranty.
** In no event will the authors be held liable for any damages arising from
** the use of this software.
**
** Permission is granted to anyone to use this software for any purpose,
** including commercial applications, and to alter it and redistribute
** it freely, subject to the following restrictions:
**
** 1. The origin of this software must not be misrepresented; you must not
**    claim that you wrote the original software. If you use this software
**    in a product, an acknowledgment in the product documentation would be
**    appreciated but is not required.
** 2. Altered source versions must be plainly marked as such, and must not be
**    misrepresented as being the original software.
** 3. This notice may not be removed or altered from any source distribution.
**
** My JSON library's homepage is here:
**		http://www.midwinter.com/~larry/programming/json/
**
** [END NOTICE]
*/
In non-legalese, my goal was to allow you to do anything you like with the software, except claim that you wrote the original version. If my license prevents you from doing something you'd like to do, contact me (my email address is in the source) and we can discuss it.

Version History

1.0
Monday, November 12th, 2007

Happy JSONing!


larry