Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs on how to use libfastjson4 #164

Open
PsySc0rpi0n opened this issue Apr 29, 2021 · 3 comments
Open

Docs on how to use libfastjson4 #164

PsySc0rpi0n opened this issue Apr 29, 2021 · 3 comments

Comments

@PsySc0rpi0n
Copy link

Hello.

Are there any documents or tutorials on how to use the library to parse JSON objects?
I have Debian Buster installed but I can't find any tutorials on libfastjson4.

Any help would be appreciated!
Thanks
Psy

@davidelang
Copy link

davidelang commented Apr 29, 2021 via email

@PsySc0rpi0n
Copy link
Author

libfastjson isn't a parser as much as it is a library for manipulating json. It's a fork of the json-c library (fixing some holes that were found there), so documenation and examples of json-c will probably apply. David Lang José Carlos Ferreira wrote:

Are there any documents or tutorials on how to use the library to parse JSON objects? I have Debian Buster installed but I can't find any tutorials on libfastjson4. Any help would be appreciated! Thanks Psy

Ok, but I tried to

#include <json-c/json.h>

but compiler says that such file doesn't exist.
Now I compiled json-c repository from their github and installed, and now, json-c works. But it didn't work only with libfastjson4 package installed.

@apple-ouyang
Copy link
Contributor

Waht davidlang means is libfastjson is similar to json-c, so you can just use json-c document.
I reconmend you this json-c document.

And the header of libfastjson is a good reference too. The test file in libfastjson repo a good start to learn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants