资源简介
收集的json的资料,有simplejson和c的API,json比xml更适合python
代码片段和文件信息
/* JSON_checker.c */
/* 2007-08-24 */
/*
Copyright (c) 2005 JSON.org
Permission is hereby granted free of charge to any person obtaining a copy
of this software and associated documentation files (the “Software“) to deal
in the Software without restriction including without limitation the rights
to use copy modify merge publish distribute sublicense and/or sell
copies of the Software and to permit persons to whom the Software is
furnished to do so subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
The Software shall be used for Good not Evil.
THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND EXPRESS OR
IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER
LIABILITY WHETHER IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING FROM
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
#include
#include “JSON_checker.h“
#define true 1
#define false 0
#define __ -1 /* the universal error code */
/*
Characters are mapped into these 31 character classes. This allows for
a significant reduction in the size of the state transition table.
*/
enum classes {
C_SPACE /* space */
C_WHITE /* other whitespace */
C_LCURB /* { */
C_RCURB /* } */
C_LSQRB /* [ */
C_RSQRB /* ] */
C_COLON /* : */
C_COMMA /* */
C_QUOTE /* “ */
C_BACKS /* \ */
C_SLASH /* / */
C_PLUS /* + */
C_MINUS /* - */
C_POINT /* . */
C_ZERO /* 0 */
C_DIGIT /* 123456789 */
C_LOW_A /* a */
C_LOW_B /* b */
C_LOW_C /* c */
C_LOW_D /* d */
C_LOW_E /* e */
C_LOW_F /* f */
C_LOW_L /* l */
C_LOW_N /* n */
C_LOW_R /* r */
C_LOW_S /* s */
C_LOW_T /* t */
C_LOW_U /* u */
C_ABCDF /* ABCDF */
C_E /* E */
C_ETC /* everything else */
NR_CLASSES
};
static int ascii_class[128] = {
/*
This array maps the 128 ASCII characters into character classes.
The remaining Unicode characters should be mapped to C_ETC.
Non-whitespace control characters are errors.
*/
__ __ __ __ __ __ __ __
__ C_WHITE C_WHITE __ __ C_WHITE __ __
__ __ __ __ __ __ __ __
__ __ __ __ __ __ __ __
C_SPACE C_ETC C_QUOTE C_ETC C_ETC C_ETC C_ETC C_ETC
C_ETC C_ETC C_ETC C_PLUS C_COMMA C_MINUS C_POINT C_SLASH
C_ZERO C_DIGIT C_DIGIT C_DIGIT C_DIGIT C_DIGIT C_DIGIT C_DIGIT
C_DIGIT C_DIGIT C_COLON C_ETC C_
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 68742 2010-02-07 00:28 json\-src-simplejson-simplejson-__init___py.mht
文件 145523 2010-02-07 00:03 json\19_2_ json — JSON encoder and decoder — Python v2_6_4 documentation.mht
文件 278308 2010-02-07 00:37 json\How to install SimpleJson Package for Python - Stack Overflow.mht
文件 13309 2010-02-07 00:08 json\json_checker\JSON_checker.c
文件 298 2010-02-07 00:08 json\json_checker\JSON_checker.h
文件 893 2010-02-07 00:08 json\json_checker\main.c
文件 5721 2010-02-07 00:06 json\json_checker\test.zip
文件 4753 2010-02-07 00:09 json\json_checker\utf8_decode.c
文件 226 2010-02-07 00:09 json\json_checker\utf8_decode.h
文件 4564 2010-02-07 00:09 json\json_checker\utf8_decode_loose.c
文件 1829 2010-02-07 00:08 json\json_checker\utf8_to_utf16.c
文件 94 2010-02-07 00:08 json\json_checker\utf8_to_utf16.h
文件 2826 2010-02-07 00:08 json\json_parser\comments.json
文件 32276 2010-02-07 00:07 json\json_parser\JSON_parser.c
文件 4435 2010-02-07 00:07 json\json_parser\JSON_parser.h
文件 487 2010-02-07 00:07 json\json_parser\JSON_PARSER_README.txt
文件 3668 2010-02-07 00:08 json\json_parser\main.c
文件 33023 2010-02-07 00:29 json\simplejson -- A simple fast extensible JSON encoder and decoder.mht
文件 230311 2010-02-07 00:04 json\simplejson — JSON encoder and decoder — simplejson v2_0_0 documentation.mht
文件 216416 2010-02-07 00:32 json\Snipt - Yansky - Simple JSON formatting example Share and store code or command snippets.mht
文件 261 2010-02-07 00:37 json\url.txt
目录 0 2010-02-07 00:09 json\json_checker
目录 0 2010-02-07 00:08 json\json_parser
目录 0 2010-02-07 00:37 json
----------- --------- ---------- ----- ----
1047963 24
- 上一篇:B站用户数据爬取
- 下一篇:基于opencv2的骨架提取代码 python实现
评论
共有 条评论