일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- texture
- AIR
- Android
- 단축키
- Ane
- 경로
- file
- 배열
- Build
- AS3
- Flash
- unity3D
- path
- sdk
- Mac
- 아이튠즈
- 영어
- flash builder
- 3d
- 게임
- Game
- class
- 태그를 입력해 주세요.
- smartfoxserver
- iphone
- XML
- builder
- swf
- ios
- unity
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 );