• 로그인 함 해보끄나?

  • Sarangnamu.net June 17, 2003
    Home Login Profile Study Open Project Q&A Google Code
    RFC4627 - The application/json Media Type for JavaScript Object Notation (JSON)
    Last Modify : 12 January, 2011(07:35)
    http://www.ietf.org/rfc/rfc4627.txt?number=4627 JSON - 문법 - JSON-text = object / array - array -> [] - object -> {} - name -> : (colon) - value -> , (comma) JSON - 값 올수있는 값 - value = false / null / true / object / array / number / string - false = %x66.61.6c.73.65 ; false - null = %x6e.75.6c.6c ; null - true = %x74.72.75.65 ; true JSON - 인코딩 - JSON 은 기본 인코딩은 UTF-8 으로 인코딩 되어야 함 - UTF-16 [BE, LE], UTF-32 [BE, LE] 가능 - ps. BE [빅인디안] LE [리틀인디안] 즉 ARM, X86 다 된다는 이야기... 예제
    {
          "Image": {
              "Width":  800,
              "Height": 600,
              "Title":  "View from 15th Floor",
              "Thumbnail": {
                  "Url":    "http://www.example.com/image/481989943",
                  "Height": 125,
                  "Width":  "100"
              },
              "IDs": [116, 943, 234, 38793]
          }
    }
    
    [
          {
             "precision": "zip",
             "Latitude":  37.7668,
             "Longitude": -122.3959,
             "Address":   "",
             "City":      "SAN FRANCISCO",
             "State":     "CA",
             "Zip":       "94107",
             "Country":   "US"
          },
          {
             "precision": "zip",
             "Latitude":  37.371991,
             "Longitude": -122.026020,
             "Address":   "",
             "City":      "SUNNYVALE",
             "State":     "CA",
             "Zip":       "94085",
             "Country":   "US"
          }
    ]
    
    - The JSON Validator -> http://jsonlint.com - http://www.json.org/json-ko.html

    Comment


    입력하3 1503256861



    Locations of visitors to this page