When requesting the PHP interface, if the interface requires more complex data, such as a 3-dimensional array, should I directly POST a 3D array, or convert the 3D array into JSON first, and then POST it? Why is it good? When a PHP interface is requested for program maintenance and security consideration, if the interface requires complicated data, such as a three-dimensional array, a three-dimensional array should be directly POST at this time, or is it possible to convert a 3D array to JSON first and then POST it? Why is it good? From the perspective of program maintenance and security
Reply content:
When requesting the PHP interface, if the interface requires more complex data, such as a 3-dimensional array, should I directly POST a 3D array, or convert the 3D array into JSON first, and then POST it? Why is it good? From the perspective of program maintenance and security
Json format
Complicated structure. json is recommended.