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