¼ÆËã»úÓïÑÔÖÐÈýÖÖÊý¾Ý
1¡¢±êÁ¿ Ò»¸öµ¥¶ÀµÄ×Ö·û´®»òÕßÊý×Ö ±ÈÈ瓳ɶ¼”£»7
2¡¢ÐòÁÐ Èô¸ÉÏà¹ØµÄÊý¾Ý°´Ò»¶¨µÄ˳Ðò²¢ÁÐÔÚÒ»Æð£¨Êý×é»òÁÐ±í£© ±ÈÈ瓱±¾©£¬³É¶¼”£»7 8 9
3¡¢Ó³Éä Ãû/Öµ¶Ô ¼´Êý¾ÝÃû³ÆÓëÏà¶ÔÓ¦µÄÖµ ÓÖ³ÆÉ¢ÁÐ(hash)»ò×Öµä ×ÖµäµÈµÈ ±ÈÈç “ËÄ´¨Ê¡»á£º³É¶¼”
JSON(JavaScript Object Notation)ÊÇÒ»ÖÖÇáÁ¿¼¶µÄÊý¾Ý½»»»¸ñʽ
JSONµÄËĸö»ù±¾¹æÔò
£¨1£©²¢ÁеÄÊý¾ÝÖ®ÁõÓöººÅ(",")·Ö¸ô¡£
£¨2£©Ó³ÉäÓÃðºÅ(":")±íʾ¡£
£¨3£©²¢ÁÐÊý¾ÝµÄ¼¯ºÏ£¨Êý×飩Ó÷½À¨ºÅ("[]")±íʾ¡£
(4) Ó³ÉäµÄ¼¯ºÏ£¨¶ÔÏó£©ÓôóÀ¨ºÅ("{}")±íʾ
JSONµÄÓŵã
1.Êý¾Ý¸ñʽ±È½Ï¼òµ¥£¬Ò×ÓÚ¶Áд£¬¸ñʽ¶¼ÊÇѹËõµÄ£¬Õ¼Óôø¿íС¡£
2.Ö§³Ö¶àÖÖÓïÑÔ£¬°üÀ¨ActionScript£¬C£¬C#£¬ColdFusion£¬Java£¬JavaScript£¬Perl£¬PHP£¬Python£¬RubyµÈ·þÎñÆ÷ÓïÑÔ£¬±ãÓÚ·þÎñÆ÷¶ËµÄ½âÎö¡£
JSONµÄȱµã
1.ÒªÇó×Ö·û¼¯±ØÐëÊÇUnicode£¬ÊÜÔ¼ÊøÐÔÇ¿¡£
2.Óï·¨¹ýÓÚÑϽ÷£¬±ØÐë×ñÊØJSONÓï·¨µÄËĸöÔÔò¡£
ËÄÖÖÊý¾Ý¸ñʽ±È½Ï
XML
XMLÊDZê׼ͨÓñê¼ÇÓïÑÔ(SGML)µÄ×Ó¼¯£¬·Ç³£ÊʺÏWeb´«Êä¡£
XMLÌṩͳһµÄ·½·¨ÃèÊöºÍ½»»»¶ÀÁ¢ÓÚÓ¦ÓóÌÐò»ò¹©Ó¦É̵Ľṹ»¯Êý¾Ý¡£
JSON
JSON»ùÓÚJavaScript Programing Language£¬Standard ECMA-262 3rd Edition-December 1999µÄÒ»¸ö×Ó¼¯¡£
Serialize
SerializeÊÇÒ»ÖÖÀàËÆÓÚJSONµÄÊý¾Ý¸ñʽ£¬µ«ÊÇPHPµÄserializeÊÔ½²±äÁ¿ÐòÁл¯£¬·µ»ØÒ»¸ö¾ßÓбäÁ¿ÀàÐͺͽṹµÄ×Ö·û´®±í´ïʽ¡£
Array()
»ù±¾Êý¾ÝÀàÐÍ£¬²»ÄÜÓÃÓÚÊý¾ÝµÄ´«ÊäºÍ½»»»¡£
TAG:json
±¾Õ¾»¶ÓÈκÎÐÎʽµÄתÔØ£¬µ«ÇëÎñ±Ø×¢Ã÷³ö´¦£¬×ðÖØËûÈËÀͶ¯³É¹û
תÔØÇë×¢Ã÷£º ÎÄÕÂתÔØ×Ô£º°®Ë¼×ÊÔ´Íø http://www.aseoe.com/show-12-465-1.html
תÔØÇë×¢Ã÷£º ÎÄÕÂתÔØ×Ô£º°®Ë¼×ÊÔ´Íø http://www.aseoe.com/show-12-465-1.html