Jon Parise
6c70e39584
Mark the AFJSON* functions as 'extern'.
2012-01-20 14:35:19 -08:00
Jon Parise
776b251f03
Move the AFJSON* functions into a source file.
...
Previously, these functions were marked 'static' and were being
included by multiple other source files. That wasn't ideal because it
resulted in their implementations being duplicated in multiple link
units.
Worse is the fact that the previous organization generated fatal
compilation errors about unused symbols when strict settings are
enabled.
2012-01-20 11:56:55 -08:00
Jon Parise
8559968514
Conditionally define the _af_nsjson_* labels.
...
These are only used when _AFNETWORKING_PREFER_NSJSONSERIALIZATION_ is
defined. Otherwise, they generate unused symbol warnings under strict
compilation settings.
2012-01-19 17:58:24 -08:00
Mattt Thompson
aaa5858546
Adding shortcircuit for _AFNETWORKING_PREFER_NSJSONSERIALIZATION_
2012-01-18 17:23:45 -08:00
Mattt Thompson
d6d97c7106
Adding missing raise for exception in AFJSONDecode
2012-01-16 14:21:32 -08:00
James Frye
44f042512c
Fixing SBJSON encoding
2011-12-16 16:38:13 -05:00
Matthias Tretter
7fdc435980
I promise, this time I really fixed it...
2011-12-10 00:06:57 +01:00
Matthias Tretter
09eece4df5
Really fixed SBJSON decoding function ;)
2011-12-09 15:46:55 +01:00
Aaron Brethorst
ac811fc5ec
Raise an exception when JSON generation functionality doesn't exist.
2011-11-21 11:57:04 -08:00
Mattt Thompson
f28cf63a96
[Issue #116 ] Fixing SBJSon decoding function
2011-11-21 09:48:42 -06:00
chaiwats
10165ccc6f
fix AFJSONEncode to work properly
2011-11-14 18:18:01 +07:00
Mattt Thompson
e215554dc3
Removing #include Availability for AFJSONUtilities
2011-11-09 10:14:12 -06:00
Mattt Thompson
7d465da4a3
Throw an exception if no JSON parsing or generation functionality is available in AFJSONEncode/AFJSONDecode
2011-11-09 10:12:40 -06:00
Mattt Thompson
03bc87dfd7
Removing inline keyword for JSON functions
2011-11-08 20:12:58 -06:00
Mattt Thompson
6a1800661a
Removing trailing whitespace
2011-11-08 20:09:23 -06:00
Mattt Thompson
fb59b75493
Fallback on NSJSONSerialization only after checking for 3rd-party libraries
2011-11-08 20:02:08 -06:00
Mattt Thompson
206f6ff1f6
Switching to NSInvocation approach to dynamic JSON library-agnostic encoding and decoding, appropriating @steipete's work on HockeyApp
2011-11-08 11:12:44 -06:00
Mattt Thompson
283d9cffea
Initial implementation of decoupling specific JSON libraries from AFNetworking, in favor of being able to specify which one to use
2011-10-24 10:49:25 -05:00