12 Commits

Author SHA1 Message Date
blueloveTH
2eb3eabcc2 add json module 2024-08-09 11:40:20 +08:00
blueloveTH
e150ffae5e rename UNREACHABLE() to PK_UNREACHABLE() 2024-01-04 13:01:26 +08:00
blueloveTH
a7448b7fa0 make json.loads accept bytes 2023-10-31 21:34:30 +08:00
blueloveTH
f66c031fa9 Update 80_json.py 2023-10-15 22:39:10 +08:00
blueloveTH
020bd7bd26 ... 2023-10-15 22:34:43 +08:00
blueloveTH
f41368afbb ... 2023-10-15 22:08:41 +08:00
blueloveTH
3c6e4b4e76 ... 2023-10-15 15:15:44 +08:00
Mahbub Alam
2950d88545
Add cjson module (#151)
* 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>
2023-10-15 13:32:20 +08:00
blueloveTH
2f52561709 add more json test cases 2023-10-07 11:37:36 +08:00
BLUELOVETH
7aa42e85c4 ... 2023-09-20 10:51:44 +08:00
blueloveTH
6a9d220433 update gc 2023-03-29 15:34:50 +08:00
blueloveTH
809fd8dd8c update test 2023-03-16 16:07:17 +08:00