FBEjson is a JSON/BSON parsing library for the FreeBASIC language. Also included is a base64 encoder/decoder library as it is used by portions of the BSON support.
Currently the best examples are the tests located in tests/json.bas. In the future there will be examples in the examples directory.
This was originally a module of the FreeBASIC Extended Library but has been extracted to allow maximum usage without the extra features the Extended Library was attempting to support like generics.
- Open a Command Prompt (if using powershell run "cmd" to get the proper support for batch file features used)
- Define a variable for the FreeBASIC compiler to use: "SET FBC=fbc32" or "SET FBC=fbc64" for 32bit or 64bit support
- Run winbuild.bat for a debug build or winbuild-release.bat for a non-debug build
- Copy inc/*.bi to your FreeBASIC install's inc dir
- Copy lib/*.a to your FreeBASIC install's lib dir
Use the provided Makefile, it is untested at the moment.