Skip to content

6.0.0

Compare
Choose a tag to compare
@jacobwilliams jacobwilliams released this 24 Aug 20:54
· 497 commits to master since this release

See also

Summary

  • Added a routine (json_value_reverse) to reverse an array or object.
  • Fixed a bug where using no_whitespace mode could still print line breaks in some cases.
  • Strings (name key and value) were not being properly escaped/unescaped in some contexts. This change introduces a small backward incompatibility (formerly, if keys contained escape characters, the user would have to include them when getting their value). Now, the string variables in all user-facing API calls are unescaped (i.e., the user does not have to manually escape the keys to get their associated value). All strings are also now properly returned unescaped, no matter how the JSON structure was constructed. Escaping is now done in all cases if necessary when the JSON is printed to a string, file or the console.