[JSON] Data types

James Jung·2022년 3월 10일
0

[JSON]

목록 보기
2/2
  1. name-value type

    {
    	"conference": "OSCON",
    	"speechTitle": "JSON at Work",
    	"track": "Web APIs"
    }
  2. simple object type

    {
    	"address": {
    		"line1": "555 Any Street",
    		"city": "Denver",
    		"stateOrProvince": "C0",
    		"zipOrPostalCode": "80202",
    		"country": "USA"
    	}
    }
  3. json object nested array type

    {
    	"speaker": {
    		"firstName": "Larson",
    		"lastName": "Richard",
    		"topics": ["JSON", "REST", "SOA"]
    	}
    }
  4. json object nested object type

    {
    	"speaker": {
    		"firstName": "Larson",
    		"lastName": "Richard",
    		"topics": ["JSON", "REST", "SOA"],
    		"address": {
    			"line1": "555 Any Street",
    			"city": "Denver",
    			"stateOrProvince": "C0",
    			"zipOrPostalCode": "80202",
    			"country": "USA"
    		}
    	}
    }
  5. json array type

    {
    	"presentation": [
            {
    			"title": "JSON at Work: Overview and Ecosystem",
    			"length": "90 minutes",
    			"abstact": ["JSON is more than just a simple replacement for XML when",
    				"you make an AJAX call."
    			],
    			"track": "Web APIs"
    		},
    		{
    			"title": "RESTful Security at Work",
    			"length": "90 minutes",
    			"abstact": ["You've been working with RESTful Web Services for a few yaers",
    				"now, and you'd like to know if your services are secure."
    			],
    			"track": "Web APIs"
    		}
    	]
    }

0개의 댓글