Skip to content

Latest commit

 

History

History
188 lines (132 loc) · 9.63 KB

Changes.markdown

File metadata and controls

188 lines (132 loc) · 9.63 KB

JSON Framework Changes

Version 3.0beta1 (January 30th, 2011)

Bug Fixes

  • Issue 36: Fix bug in build script that caused it to break if $SRCROOT has spaces.

Changes

  • Remove the hacky dataToHere method in favour of just exposing the internal NSMutableData buffer.
  • Added a minimal Mac example project showing how to link to an external JSON framework rather than copying the sources into your project.

Version 3.0alpha3 (January 2nd, 2011)

  • Added documentation to the TwitterStream sample project.
  • Fixed a few warnings, bugs & a memory leak reported by Andy Warwick.

Version 3.0alpha2 (December 28th, 2010)

Changes

  • Minor changes to formatting when the HumanReadable flag is set. Empty arrays and objects are no longer special-cased to appear on a single line. The separator between key and value in an object has changed to ': ' rather than ' : '.
  • Issue 25: Simplified error handling.

New Features

  • Issue 16: Added support for parsing a UTF8 data stream. This means you can start parsing huge documents before it's all downloaded. Supports skipping the outer-most layer of huge arrays/objects or parsing multiple whitespace-separated completed documents.
  • Issue 12: Added support for writing JSON to a data stream. This means you can write huge JSON documents to disk, or an HTTP destination, without having to hold the entire structure in memory. You can even generate it as you go, and just stream snapshots to an external process.
  • Issue 18 & 27: Re-orient API to be NSData-based. The NSString-oriented API methods now delegates to this.

Enhancements

  • Issue 9: Improve performance of the SBJsonWriter. This implementation is nearly twice as fast as 2.3.x on Sam Soffes' benchmarks.
  • Issue 30: Added TwitterStream example project showing how to interact with Twitter's multi-document stream. (See Examples/TwitterStream in the distribution.)

Version 2.3.1 (September 25th, 2010)

Changes

  • Move to host releases on Github rather than Google code.
  • Renamed .md files to .markdown.
  • Removed bench target--use Sam Soffes's benchmarks instead.
  • Releases are no longer a munged form of the source tree, but identical to the tagged source.

Bug fixes

  • Issue 2: Linkage not supported by default distribution.
  • Issue 4: Writer reported to occasionally fail infinity check.
  • Issue 8: Installation.markdown refers to missing JSON folder.

Version 2.3 (August 7, 2010)

  • Renamed README.md to Readme.md
  • Updated version number

Version 2.3beta1 (July 31, 2010)

Changes

  • Parsing performance improvements.
    Issue 56: Dewvinci & Tobias Höhmann came up with a patch to improve parsing of short JSON texts with lots of numbers by over 60%.
  • Refactored tests to be more data-driven.
    This should make the source leaner and easier to maintain.
  • Removed problematic SDK
    Issue 33, 58, 63, and 64: The vast majority of the issues people are having with this framework were related to the somewhat mystical Custom SDK. This has been removed in this version.
  • Removed the deprecated SBJSON facade
    Issue 71: You should use the SBJsonParser or SBJsonWriter classes, or the category methods, instead. This also let us remove the SBJsonParser and SBJsonWriter categories; these were only there to support the facade, but made the code less transparent.
  • Removed the deprecated fragment support
    Issue 70: Fragments were a bad idea from the start, but deceptively useful while writing the framework's test suite. This has now been rectified.

Bug Fixes

  • Issue 38: Fixed header-inclusion issue.
  • Issue 74: Fix bug in handling of Infinity, -Infinity & NaN.
  • Issue 68: Fixed documentation bug

Version 2.2.3 (March 7, 2010)

  • Added -all_load to libjsontests linker flags.
    This allows the tests to run with more recent versions of GCC.
  • Unable to do a JSONRepresentation for a first-level proxy object.
    Issue 54 & 60: Allow the -proxyForJson method to be called for first-level proxy objects, in addition to objects that are embedded in other objects.

Version 2.2.2 (September 12, 2009)

  • Fixed error-reporting logic in category methods.
    Reported by Mike Monaco.
  • iPhone SDK built against iPhoneOS 3.0.
    This has been updated from 2.2.1.

Version 2.2.1 (August 1st, 2009)

  • Added svn:ignore property to build directory.
    Requested by Rony Kubat.
  • Fixed potential corruption in category methods.
    If category methods were used in multiple threads they could potentially cause a crash. Reported by dprotaso / Relium.

Version 2.2 (June 6th, 2009)

No changes since 2.2beta1.

Version 2.2beta1 (May 30th, 2009)

  • Renamed method for custom object support
    Renamed the -jsonRepresentationProxy method to -proxyForJson.

Version 2.2alpha5 (May 25th, 2009)

  • Added support for custom objects (generation only)
    Added an optional -jsonRepresentationProxy method that you can implement (either directly or as category) to enable JSON.framework to create a JSON representation of any object type. See the Tests/ProxyTest.m file for more information on how this works.
  • Moved maxDepth to SBJsonBase
    Throw errors when the input is nested too deep for writing json as well as parsing. This allows us to exit cleanly rather than break the stack if someone accidentally creates a recursive structure.

Version 2.2alpha4 (May 21st, 2009)

  • Renamed protocols and moved method declarations
    Renamed SBJsonWriterOptions and SBJsonParserOptions protocols to be the same as their primary implementations and moved their one public method there.
  • Implemented proxy methods in SBJSON
    This facade now implements the same methods as the SBJsonWriter and SBJsonParser objects, and simply forwards to them.
  • Extracted private methods to private protocol
    Don't use these please.
  • Improved documentation generation
    Classes now inherit documentation from their superclasses and protocols they implement.

Version 2.2alpha3 (May 16th, 2009)

  • Reintroduced the iPhone Custom SDK
    For the benefit of users who prefer not to copy the JSON source files into their project. Also updated it to be based on iPhoneOS v2.2.1.
  • Deprecated methods for dealing with fragments
    Tweaked the new interface classes to support the old fragment-methods one more version.

Version 2.2alpha2 (May 11th, 2009)

  • Added a Changes file.
    So people can see what the changes are for each version without having to go to the project home page.
  • Updated Credits.
    Some people that have provided patches (or other valuable contributions) had been left out. I've done my best to add those in. (If you feel that you or someone else are still missing, please let me know.)
  • Removed .svn folders from distribution.
    The JSON source folder had a .svn folder in it, which could have caused problems when dragging it into your project.

Version 2.2alpha1 (May 10th, 2009)

  • Improved installation instructions, particularly for the iPhone.
    Getting the SDK to work properly in all configurations has proved to be a headache. Therefore the SDK has been removed in favour of instructions for simply copying the source files into your project.
  • Split the SBJSON class into a writer and parser class.
    SBJSON remains as a facade for backwards compatibility. This refactoring also quashed warnings reported by the Clang static analyser.
  • Improved interface for dealing with errors.
    Rather than having to pass in a pointer to an NSError object, you can now simply call a method to get the error stack back if there was an error. (The NSError-based API remains in the SBJSON facade, but is not present in the new classes.)
  • Documentation updates.
    Minor updates to the documentation.

Release notes for earlier releases can be found here: http://code.google.com/p/json-framework/wiki/ReleaseNotes