Skip to content

BestInternDeveloper/jsonlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsonlib

Introduction:

JSON, also known as JavaScript Object Notation, is a lightweight data-interchange format. It is easy for humans to read and write. At the same time, it is easy for machines to parse and generate. There is a detailed data format in RFC7159.

jsonlib is simpy library in C for people to use json in C language.

Usage:

Static Link Library

To use this static link library in your project, just add simply include statement in front of your code and link generated lib file to your project.

#include "jsonlib_lib.h"

Dynamic Link Library

For dynamic link library, you should add another include statement in front of your code and place generated dll file to your project.

#include "jsonlib_dll.h"

Just enjoy it!

Example:

To test with examples in ./test_jsons/, you can run:

mkdir build && cd build
cmake ../ -G "{your_prefer_compiler}"
make
./{path_to_executor}

Bug

If you find some bugs, please email to bihuchao@qq.com.

-EOF-

About

A json library in C.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published