Skip to content

Instantly share code, notes, and snippets.

@yuki-takeichi
yuki-takeichi / yajl.c
Created June 19, 2014 06:04
yajl.c for dumped json from Parse.com
#include <yajl/yajl_parse.h>
#include <yajl/yajl_gen.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static int map_level = 0;
static int array_level = 0;
var DISPATCH_TABLE = {};
DISPATCH_TABLE.Person = {
intro : function(_self){
return "I am just a Person,and my name is "+_self.name;
}
};