36 Commits (json-c-0.18-20240915)

Author SHA1 Message Date
  Eric Haszlakiewicz f23486a321 In the json_tokener_state_number case, explicitly adjust what "number" characters are allowed based on the exact micro-state that we're in, and check for invalid following characters in a different way, to allow a valid json_type_number object to be returned at the top level. 5 years ago
  Eric Haszlakiewicz 0710c835a1 Reformat the json_object-split branch with clang-format 5 years ago
  Eric Haszlakiewicz 9128ec49b1 Include unistd.h to fix the build on OSX 5 years ago
  Eric Haszlakiewicz 5ebfeaedc5 Drop the _delete field from struct json_object and call the type-specific delete functions directly from json_object_put. (Thanks @dota17 for the suggestion in PR #632!) 5 years ago
  Eric Haszlakiewicz 4c10712114 Drop the useless "char data[1]" from struct json_object. Fix a typo in a comment. 5 years ago
  Eric Haszlakiewicz ecdfeb18cf Move the ssize_t typedef from json_inttypes.h to json_object_private.h so as not to affect publically exposed symbols. 5 years ago
  Eric Haszlakiewicz 66d91fdf86 The split of json_object into type-specific sub-structures is now functionally complete. 5 years ago
  Eric Haszlakiewicz 0fc9d91277 Kick json_type_string out of struct json_object. 5 years ago
  Eric Haszlakiewicz 9ecb1222bd Kick json_type_int and json_type_double out of struct json_object. 5 years ago
  Eric Haszlakiewicz d1f83bf5ea Kick json_type_boolean out of struct json_object. 5 years ago
  Eric Haszlakiewicz 02b687b9a6 Kick json_type_array out of struct json_object; re-enable the test_deep_copy test. 5 years ago
  Eric Haszlakiewicz 853b4b5dee Start splitting struct json_object into multiple sub-types, as descibed at https://github.com/json-c/json-c/wiki/Proposal:-struct-json_object-split 5 years ago
  Eric Haszlakiewicz 19bbf2c069 Add includes and split off json_types.h to help ensure that headers can be included in any order. 5 years ago
  dota17 8b162c4b89 clang-format the files 5 years ago
  dota17 c117d8a8a8 add the disabling formatting coments and adjust the partial code manuly 5 years ago
  dota17 9532f94fa4 modify partial functions and testcase, in order to support automatic conversion for int64/uint64 5 years ago
  dota17 c816de212b modify the json_object, replace c_int64/c_uint64 with struct{union{int64, uint64},...} 5 years ago
  dota17 3c3b5920f7 add uint64 data to json-c 5 years ago
  Ramiro Polla 5bb5e2e8fc json_object_private: save 8 bytes in struct json_object in 64-bit architectures 6 years ago
  Björn Esser c233f5c05e
json_object_private: Use unsigned 32-bit integer type for refcount 7 years ago
  Eric Haszlakiewicz f2f103b986 Add a brief overview of each file to the docs. 7 years ago
  Eric Haszlakiewicz 11ab365324 Deprecated a few typedefs, add docs on json_object_iter, move json_number_chars and json_hex-chars to json_object_private.h. 7 years ago
  Eric Haszlakiewicz 437716c5b4 Rename _set_last_err() to _json_c_set_last_err(). 7 years ago
  Eric Haszlakiewicz 8581806558 Make _set_last_err() non-static so it can be used outside of json_util.c 8 years ago
  Rainer Gerhards c4f8cc34df more efficient handling for smalls strings inside json_object 10 years ago
  Eric Haszlakiewicz 38f421a2e7 Add a json_set_serializer() function to allow the string output of a json_object to be customized. 13 years ago
  Eric Haszlakiewicz 3fcffe1bb0 Add a json_object_to_json_string_ext() function to allow the formatting of output to be selected. 13 years ago
  Keith Derrick 37e7467476 Rename boolean type to json_bool 13 years ago
  Jehiah Czebotar 43d2f417c7 move definition of json_object_iter to public header to enable external use of json_object_object_foreachC 14 years ago
  Jehiah Czebotar ac601b5b5f update json_object_new_string_len, json_escape_str (internal). Writer handles \x00 correctly 14 years ago
  ehaszla 252669cee6 Simplify things by storing integer values only as int64_t's internally, and 15 years ago
  Michael Clark c4dceae1c5 * Add int64 support. Two new functions json_object_net_int64 and 15 years ago
  Michael Clark aaec1ef3c5 * Don't use this as a variable, so we can compile with a C++ compiler 16 years ago
  Michael Clark f6a6e486ff * Make headers C++ compatible by change *this to *obj 18 years ago
  Michael Clark 4504df7117 * printbuf.c - C. Watford (christopher dot watford at gmail dot com) 18 years ago
  Michael Clark f0d08887b8 import of version 0.1 18 years ago