The backend returns an array type of data, but the data contains "<null>", "(null)", and so on, the local cache write data failed, write to File: Method restrictions, can consult the data, so write the following processing method, the empty string is replaced directly with an empty string "" To successfully write to the file.
method to pass data in the array type to be processed as follows
If the element of the array is still an array, call the method of array processing, if it is a dictionary, call the dictionary processing method, use the while loop until the condition is met, and return the required data. If neither an array nor a dictionary is a string or other type, replace with an empty string
Here's how the array is handled
Here's how the dictionary is handled
Empty string processing methods are as follows
Record, so as not to forget, convenient for later use
Processing of IOS server go home data