Learn to Code
John F. Dumas
contact me | resume | how it works | example programs | testimonials | main page
C - JSON Library
► Problem: Write a library to read JSON data. Ensure that the library does proper error handling and reporting and that it is portable (should build and run under both windows and unix environments).
► Example Input:
[ 'foo', -9, 1.234, true, false, null, [ [ true, false ], true, null, null, null, null, '', "'", " \"hello\"", -.3, '\'@' ], { 'x': 42, 'y': 43, 'z': 44 }, { 'a': [ { 'b': 'c', 'd': 'e' } ], 'b': { '_' : [ 'f' ], '__' : [ 'g', 'h' ], '___': [ 'i', 'j', 'k' ] } } ]
► Source code
All source files (zip file)