Json_parse_it: Start parsing, string pointer loops from beginning to end
Jk_parse_next_token: Gets the type and length of the next character
Most separators have a fixed length of 1
Jk_parse_string: Loop moves the pointer until the end symbol, gets the string length
Jk_parse_number: Get the length of a number
Jk_object_for_token: Gets the node (type, length)
Judging type
Jk_cachedobjects: Gets the String object
Jk_cachedobjects: Gets the Number object
Jk_parse_dictionary: Get Dictionary Object
Jk_parse_array: Getting Array objects
Kcfbooleantrue
Kcfbooleanfalse
Kcfnull
Jk_parse_dictionary: Parsing Dictionaries
Cycle
Jk_parse_next_token,jk_object_for_token,: Get key
Jk_parse_next_token, Judge: Sign or error
Jk_parse_next_token,jk_object_for_token,: Get Value
Jk_parse_array parsing an array
Cycle
Jk_parse_next_token,jk_object_for_token,: Get Object
All in all: Json_parse_it is the entrance, Jk_object_for_token as the state machine role, processing each object, Jk_parse_next_token get the next switch of the state machine, then how to deal with the next object,
Text/Pen (Jane's writer)
Original link: Http://www.jianshu.com/p/dc7f581ee8fa
iOS Development Those Things (iii) Jsonkit analytic principle