Skip to content

programmingthomas/json-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#JSON-Parser

This is a very simple JSON parser written in C that I wrote over the course of a weekend. I wrote this for fun and is not intended for general use, however you may wish to learn from my source code and maybe build a proper JSON library on top of it. My aim wasn't necessarily speed or memory efficiency however it handles parsing all the JSON files I've thrown at it fine.

##Compilation

Add #import "jsonparser.h" and compile with mstr.c and jsonparser.c:

gcc mstr.c jsonparser.c main.c -o main

The current sample reads the file tests.json and demonstrates how to use booleans, arrays, numbers, strings and objects.

##Current support

##Future features

  • Support for parsing from the web (i.e. libcurl) and from C-strings
  • Iterator (C function pointers) support
  • Errors

About

A very simple JSON parser written in C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published