mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
* Add cjson module * Create structure for cjson module * Implemenet loads function * Convert cJsonBool to python boolean * Implement dumps function * Convert json bool and null to python Bool and None * necessary changes of project structure * Update amalgamate.py * Support non-dictionary json objects (list, tuple, string, number, bool, null) * Fix tests * fix CI * fix CI * Convert python to cJson and then to string * Delete cJSON object after use --------- Co-authored-by: Mahbub Alam <alam.mahbub214@gmail.com> Co-authored-by: blueloveTH <blueloveth@foxmail.com>
8 lines
122 B
C++
8 lines
122 B
C++
#include "cJSON.h"
|
|
#include "pocketpy/pocketpy.h"
|
|
|
|
namespace pkpy {
|
|
|
|
void add_module_cjson(VM* vm);
|
|
|
|
} // namespace pkpy
|