Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1511632
  • 博文数量: 129
  • 博客积分: 1449
  • 博客等级: 上尉
  • 技术积分: 3048
  • 用 户 组: 普通用户
  • 注册时间: 2012-07-24 18:36
文章分类

全部博文(129)

文章存档

2015年(3)

2014年(20)

2013年(65)

2012年(41)

分类: C/C++

2013-02-28 14:16:03

//紧凑格式和非紧凑格式
{"name":"Jack (\"Bee\") Nimble","id1":1,"id2":2,"IDs":[116, 943, 234, 38793],"format":{"type":"rect","width":1920,"height":1080,"interlace":false,"frame rate":24}}


{
"name": "Jack (\"Bee\") Nimble",
"id1": 1,
"id2": 2,
"IDs": [116, 943, 234, 38793],
"format": {
"type": "rect",
"width": 1920,
"height": 1080,
"interlace": false,
"frame rate": 24
}
}


//--- 以下为调试记录
parse_value: value = {
parse_object Begin: value = {
parse_string: End, ret = name
parse_value: value = "
parse_string: End, ret = Jack ("Bee") Nimble
parse_object: ,
parse_string: End, ret = id1
parse_value: value = 1
parse_number: End, ret = 1
parse_object: ,
parse_string: End, ret = id2
parse_value: value = 2
parse_number: End, ret = 2
parse_object: ,
parse_string: End, ret = id3
parse_value: value = 3
parse_number: End, ret = 3
parse_object: ,
parse_string: End, ret = IDs
parse_value: value = [
parse_array Begin: value = [
parse_value: value = 1
parse_number: End, ret = 116
parse_array: ,
parse_value: value = 9
parse_number: End, ret = 943
parse_array: ,
parse_value: value = 2
parse_number: End, ret = 234
parse_array: ,
parse_value: value = 3
parse_number: End, ret = 38793
parse_array End: value = ]
parse_object: ,
parse_string: End, ret = format
parse_value: value = {
parse_object Begin: value = {
parse_string: End, ret = type
parse_value: value = "
parse_string: End, ret = rect
parse_object: ,
parse_string: End, ret = width
parse_value: value = 1
parse_number: End, ret = 1920
parse_object: ,
parse_string: End, ret = interlace
parse_value: value = f
parse_object: ,
parse_string: End, ret = frame rate
parse_value: value = 2
parse_number: End, ret = 24
parse_object: ,
parse_object End: value+2 = }
parse_object End: value = }
print_object: numentries = 6
print_string_ptr: len = 4
print_string_ptr: End, out = "name"
print_string_ptr: len = 21
print_string_ptr: End, out = "Jack (\"Bee\") Nimble"
print_value: End, out = "Jack (\"Bee\") Nimble"
print_string_ptr: len = 3
print_string_ptr: End, out = "id1"
print_value: End, out = 1
print_string_ptr: len = 3
print_string_ptr: End, out = "id2"
print_value: End, out = 2
print_string_ptr: len = 3
print_string_ptr: End, out = "id3"
print_value: End, out = 3
print_string_ptr: len = 3
print_string_ptr: End, out = "IDs"
print_array: numentries = 4
print_value: End, out = 116
print_value: End, out = 943
print_value: End, out = 234
print_value: End, out = 38793
print_array: End, out = [116, 943, 234, 38793]
print_value: End, out = [116, 943, 234, 38793]
print_string_ptr: len = 6
print_string_ptr: End, out = "format"
print_object: numentries = 4
print_string_ptr: len = 4
print_string_ptr: End, out = "type"
print_string_ptr: len = 4
print_string_ptr: End, out = "rect"
print_value: End, out = "rect"
print_string_ptr: len = 5
print_string_ptr: End, out = "width"
print_value: End, out = 1920
print_string_ptr: len = 9
print_string_ptr: End, out = "interlace"
print_value: End, out = false
print_string_ptr: len = 10
print_string_ptr: End, out = "frame rate"
print_value: End, out = 24
print_object: End, out = {
"type": "rect",
"width": 1920,
"interlace": false,
"frame rate": 24
}
print_value: End, out = {
"type": "rect",
"width": 1920,
"interlace": false,
"frame rate": 24
}
print_object: End, out = {
"name": "Jack (\"Bee\") Nimble",
"id1": 1,
"id2": 2,
"id3": 3,
"IDs": [116, 943, 234, 38793],
"format": {
"type": "rect",
"width": 1920,
"interlace": false,
"frame rate": 24
}
阅读(2271) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~