176 Commits (80961256182a465b75d790005fa30db9a043b885)

Author SHA1 Message Date
  Emiel Bruijntjes 7e98ed93f4 subtract first, then retrieve value 9 years ago
  Emiel Bruijntjes 9d85367679 added tabs instead of spaces to be compatible with rest of code 9 years ago
  Emiel Bruijntjes 827f0fd8ef update indentation 9 years ago
  Emiel Bruijntjes 23ee243113 reference increment and decrement is now atomic (when using a GCC compatible compiler), which allows passing json objects between threads 9 years ago
  Daniel M. Weeks 92e9a5032b Use size_t for json object array ops 11 years ago
  James Myatt 3f012eb0f8 Fix build in Visual Studio 10 years ago
  Eric Haszlakiewicz 12916e229c Merge pull request #196 from rgerhards/improve-performance 10 years ago
  Rainer Gerhards c4f8cc34df more efficient handling for smalls strings inside json_object 10 years ago
  Rainer Gerhards 1ae4b50bde remove unneeded data items from hashtable code 10 years ago
  Rainer Gerhards 2d549662be add json_object_object_add_ex() API 10 years ago
  Rainer Gerhards d8e44dc685 reduce duplicate hash computation in json_object_object_add() 10 years ago
  Eric Haszlakiewicz b594c34f57 Merge pull request #174 from haata/master 10 years ago
  Jacob Alexander 92d4cf15f0 Adding JSON_C_TO_STRING_PRETTY_TAB flag 10 years ago
  Mark Swoope cdca9d3c8e Added array_list_del_idx and json_object_array_del_idx 10 years ago
  James Myatt 18b3c49296 Use more appropriate casts 10 years ago
  Eric Haszlakiewicz 484ca368f0 Slight style tweaks to the bsearch changest. 10 years ago
  Alexander Dahl 2f5789bdef add bsearch for arrays 11 years ago
  Eric Haszlakiewicz 2149a04ca8 Check for failures when allocating memory; return NULL and set errno=ENOMEM in a few of those cases. 11 years ago
  Eric Haszlakiewicz 92a7740e90 Reformat some code in json_object.c 11 years ago
  Eric Haszlakiewicz e6f1322b5e Issue#114: check for the presence of isnan and isinf, and provide compat macros on MSCV where _isnan and _finite exist instead. 11 years ago
  Keith Derrick c51b88d69a Avoid potential overflow in json_object_get_double 12 years ago
  Eric Haszlakiewicz 06450206c4 Issue #59: change the floating point output format to %.17g so values with more than 6 digits show up in the output. 12 years ago
  Eric Haszlakiewicz a23caf677c Use sizeof instead of hard coded values when calling snprintf. 12 years ago
  Eric Haszlakiewicz 51993c28c2 Added a json_object_new_double_s() convenience function to allow an exact string representation of a double to be specified when creating the object and use it in json_tokener_parse_ex() so a re-serialized object more exactly matches the input. 12 years ago
  Eric Haszlakiewicz ef43fe3571 Merge pull request #96 from rouault/remove_strdnup 12 years ago
  Even Rouault 1a957c2edc Remove redefinition of strndup() which is no longer used in the codebase 12 years ago
  Taneli Mielikainen c5523a17e8 fixing problem that isinf(-Inf) can be 1 or -1 12 years ago
  Eric Haszlakiewicz 98a62a7652 Merge pull request #89 from ayanes/master 12 years ago
  Adrian Yanes d086e2018c Fixes for Infinity and NaN 12 years ago
  Anatol Belski ed819fb926 snprintf definition is needed here, too 12 years ago
  Eric Haszlakiewicz 5b36a432c8 Merge branch 'remicollet-issue-float' 12 years ago
  Greg Hazel cca74c6de6 add json_object_object_length 12 years ago
  Alexander Klauer 2be921d883 Fixed json_object_object_add(). 12 years ago
  Abioy 7eaa849e9a escape '\f' in json_escape_str 12 years ago
  Remi Collet 32d149c8f6 probably worth an option for this 12 years ago
  Remi Collet 8c847968c7 Save space, drop unuseful trailing zeroes 12 years ago
  Remi Collet 4014fe86d9 Simple fix to double encode 12 years ago
  Eric Haszlakiewicz 4e4af93d66 Fix issue #53 - ensure explicit length string are still NUL terminated, and fix json_tokener_parse() to work properly with embedded unicode \u0000 values in strings. 12 years ago
  Eric Haszlakiewicz e36e562872 Reformat json_object_object_get() and json_object_object_get_ex(). 13 years ago
  Eric Haszlakiewicz 5450bed051 Fix json_object_object_get() so it returns NULL if the incoming json_object is NULL. 13 years ago
  Eric Haszlakiewicz 5f4739e2eb Change json_object_put to return 1 if the object passed was actually freed. (or 0 if only the reference count was decremented) 13 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 6988f53fcb Rewrite json_object_object_add to replace just the value if the key already exists so keys remain valid. 13 years ago
  Mateusz Loskot 271c53ebdd Missing explicit casts from void* to specific pointers required. Added #define strcasecmp for Visual C++. 13 years ago
  Mateusz Loskot a6f39a3c0c Replaced #if HAVE_X with #ifdef HAVE_X as the former test is troublemaker with #define HAVE_X where #define HAVE_X 1|0 is meant. 13 years ago
  Eric Haszlakiewicz 0cc1db6459 Change the format used for sprintbuf (but not scanf) to use %f instead of %lf because the "l" is unnecessary and some compilers behave differently with it present (e.g. MinGW). 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
  Eric Haszlakiewicz 4e000a65e6 Since we already use a local json_bool type, replace any stdbool.h usage with 13 years ago
  Keith Derrick 6917586acf Add NULL-safe get object method 13 years ago
  Eric Haszlakiewicz aef439a175 Adjust json_object_is_type and json_object_get_type so they return json_type_null for NULL objects. 13 years ago