function readStr()
ret = ""
for i : 1 to readByte() // readByte() 此时读取的是字符串长度的
ret.append(readByte())
end
return ret
end
function readArray()
ret = []
len = readByte() // 读取数组长度
for i : 1 to len
case readByte()
when '[': // 数组
ret << readArray()
when '"': // 字符串
ret << readStr()
end
end
return ret
end