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

add various json routines into single functions. #211

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TheTechsTech
Copy link

  • add json_encode for object creation functions, using printf like formats.
  • add json_for for array creation functions, using printf like formats.
  • add is_json basic check not NULL and type not JSONError.
  • add json_decode combines json_parse_string_with_comments and json_parse_string
  • add json_serialize combines json_serialize_to_string_pretty and json_serialize_to_string
  • add encode_decode_example() to readme, show shorter syntax to serialization_example()
  • add/enable encode_decode_example() into tests.c

Note: This library is embed into https://github.com/zelang-dev/c-coroutine/blob/main/src/json.c and https://github.com/zelang-dev/c-coroutine/blob/main/examples/co_json.c where all memory and I/O is managed difference.

- add `json_encode` for object creation functions, using `printf` like formats.
- add `json_for` for array creation functions, using `printf` like formats.
- add `is_json` basic check not NULL and type not JSONError.
- add `json_decode`  combines` json_parse_string_with_comments` and `json_parse_string`
- add `json_serialize` combines `json_serialize_to_string_pretty` and `json_serialize_to_string`
- add `encode_decode_example()` to readme, show shorter syntax to `serialization_example()`
- add/enable `encode_decode_example()` into tests.c

Note: This library is embed into https://github.com/zelang-dev/c-coroutine/blob/main/src/json.c and https://github.com/zelang-dev/c-coroutine/blob/main/examples/co_json.c where all memory and I/O is managed difference.
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

Successfully merging this pull request may close these issues.

1 participant