summaryrefslogtreecommitdiff
path: root/libs/json.c
blob: 4b0dac093a5ebe0f06fce973e5b376cbcfb3f991 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <json-c/json.h>
#include "json.h"

json_object* jsonParseString(char* stringedJSON)
{
	struct json_object *json;
	json = ( stringedJSON != NULL && strlen(stringedJSON) > 0 ) ? json_tokener_parse(stringedJSON) : NULL;
	free(stringedJSON);
	return json;
}