| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
Tags
- swf
- Build
- Ane
- flash builder
- AIR
- 단축키
- Flash
- texture
- path
- 경로
- 3d
- ios
- sdk
- unity3D
- AS3
- unity
- file
- Android
- 배열
- 영어
- 태그를 입력해 주세요.
- iphone
- Game
- class
- Mac
- XML
- 게임
- smartfoxserver
- 아이튠즈
- builder
Archives
- Today
- Total
상상 너머 그 무언가...
[json-c] 배열 json 에서 값 구하기 본문
참조 : json_objec.h File Reference
● json 객체가 배열 json 객체인지 체크
if ( json_object_get_type( test_array_json ) == json_tyoe_array )
● 배열 json 의 길이 구하기
int array_len = json_object_array_length( test_array_json );
● 배열json 에서 0번째 index에 해당하는 object 구하기
json_object *test_array_idx0_json;
test_array_idx0_json = json_object_array_get_idx( test_array_json, 0 );
● 0번째 index 의 object 에서 정수값 구하기
int test_array_idx_value = json_object_get_int( test_array_idx0_json );