Firstly, valid JSON (text) is not suitable for generating a hash either: for a particular object, there may be many valid JSON forms that represent this object:
JSON is basically βtext,β and its character encoding is Unicode. Unicode has five different Unicode schemes: it can be UTF-8, UTF-16BE, UTF-16LE, UTF-32BE or UTF-32LE. Each scheme will give a different hash, even the object is the same.
JSON can contain spaces and tabs (they are also "pretty printed").
JSON escape- unicode. "solidus" / .
, JSON . , , JSON- undefined.
, JSON () , .
JSON , , ( ), .
-, "" / JSON: JSON "" JSON , JSON, .
, / . , , , , JSON (. , JSON ). , , "solidus", .
, NSJSONSerialization "", (, ) "" JSON, JSON.
, , JSON, . /, , .
( "Canonicalize JSON" ) / JSON, Foundation: (, ++ ), JSON ( JSON), .
, , . / JSON API Objective-C, ++. , , , (JPJSONWriter : JPJsonWriterSortKeys, JPJsonWriterEscapeSolidus). , , (Objective-C API, ++ ) ).
: JPJson ( )
JPJson " ". , " " " ". "HashGenerator", .
, , JSON : jsonlite, JsonLiteSerializer serializeDictionary: .
.