Home
last modified time | relevance | path

Searched refs:json (Results 1 – 25 of 70) sorted by relevance

123

/AliOS-Things-master/components/py_engine/tests/extmod/
A Dujson_dumps.py2 import ujson as json namespace
5 import json
10 print(json.dumps(False))
11 print(json.dumps(True))
12 print(json.dumps(None))
13 print(json.dumps(1))
14 print(json.dumps("abc"))
16 print(json.dumps([]))
17 print(json.dumps([1]))
20 print(json.dumps(()))
[all …]
A Dujson_loads.py2 import ujson as json namespace
5 import json
18 my_print(json.loads("null"))
19 my_print(json.loads("false"))
20 my_print(json.loads("true"))
21 my_print(json.loads("1"))
22 my_print(json.loads("-2"))
24 my_print(json.loads("[]"))
25 my_print(json.loads("[null]"))
28 my_print(json.loads("{}"))
[all …]
A Dujson_loads_float.py2 import ujson as json namespace
5 import json
15 my_print(json.loads("1.2"))
16 my_print(json.loads("1e2"))
17 my_print(json.loads("-2.3"))
18 my_print(json.loads("-2e3"))
19 my_print(json.loads("-2e+3"))
20 my_print(json.loads("-2e-3"))
A Dujson_load.py3 import ujson as json namespace
7 import json
12 print(json.load(StringIO("null")))
13 print(json.load(StringIO('"abc\\u0064e"')))
14 print(json.load(StringIO("[false, true, 1, -2]")))
15 print(json.load(StringIO('{"a":true}')))
A Dujson_dump.py3 import ujson as json namespace
7 import json
13 json.dump(False, s)
17 json.dump({"a": (2, [3, None])}, s)
22 json.dump(123, 1)
28 json.dump(123, {})
A Dujson_dumps_float.py2 import ujson as json namespace
5 import json
10 print(json.dumps(1.2))
11 print(json.dumps({1.5: "hi"}))
A Dujson_loads_bytes.py4 import ujson as json namespace
7 import json
12 print(json.loads(b"[1,2]"))
13 print(json.loads(bytearray(b"[null]")))
A Dujson_dumps_ordereddict.py2 import ujson as json namespace
6 import json
12 print(json.dumps(OrderedDict(((1, 2), (3, 4)))))
A Dujson_dump_iobase.py5 import ujson as json namespace
8 import io, json
33 json.dump([123, {}], s)
/AliOS-Things-master/hardware/chip/haas1000/drivers/utils/jansson/
A Djansson.h70 #define json_is_object(json) ((json) && json_typeof(json) == JSON_OBJECT) argument
71 #define json_is_array(json) ((json) && json_typeof(json) == JSON_ARRAY) argument
72 #define json_is_string(json) ((json) && json_typeof(json) == JSON_STRING) argument
73 #define json_is_integer(json) ((json) && json_typeof(json) == JSON_INTEGER) argument
74 #define json_is_real(json) ((json) && json_typeof(json) == JSON_REAL) argument
75 #define json_is_number(json) (json_is_integer(json) || json_is_real(json)) argument
76 #define json_is_true(json) ((json) && json_typeof(json) == JSON_TRUE) argument
77 #define json_is_false(json) ((json) && json_typeof(json) == JSON_FALSE) argument
79 #define json_is_boolean(json) (json_is_true(json) || json_is_false(json)) argument
80 #define json_is_null(json) ((json) && json_typeof(json) == JSON_NULL) argument
[all …]
A Djansson_private.h35 json_t json; member
42 json_t json; member
50 json_t json; member
56 json_t json; member
61 json_t json; member
65 #define json_to_object(json_) container_of(json_, json_object_t, json)
66 #define json_to_array(json_) container_of(json_, json_array_t, json)
67 #define json_to_string(json_) container_of(json_, json_string_t, json)
68 #define json_to_real(json_) container_of(json_, json_real_t, json)
69 #define json_to_integer(json_) container_of(json_, json_integer_t, json)
/AliOS-Things-master/components/jsoncpp/
A Dmeson.build9 # 2. /include/json/version.h
22 'include/json/allocator.h',
23 'include/json/assertions.h',
24 'include/json/config.h',
26 'include/json/forwards.h',
27 'include/json/json.h',
28 'include/json/reader.h',
29 'include/json/value.h',
30 'include/json/version.h',
31 'include/json/writer.h',
[all …]
A DREADME.md15 - json字符串编码
16 - json字符串解码
31 │ └── json # jsoncpp 头文件
144 json write json_file = {
159 json read name = colin !
A DCONTRIBUTING.md55 # (http://www.json.org/JSON_checker/).
59 python runjsontests.py --with-json-checker path/to/jsontest
79 * a `TESTNAME.json` file, that contains the input document in JSON format.
93 See the examples `test_complex_01.json` and `test_complex_01.expected` to better understand element…
99 * `test_complex_01.json`: input JSON document.
103 from reading `test_complex_01.json`.
105 `Json::Value` parsed from `test_complex_01.json` and serialized using
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/experimental/acceleration/compatibility/
A DREADME.md8 - Convert from checked-in flatbuffer to json by running `flatc -t --raw-binary
9 --strict-json database.fbs -- gpu_compatibility.bin`
10 - Edit the json
11 - Convert from json to flatbuffer `flatc -b database.fbs --
12 gpu_compatibility.json`
/AliOS-Things-master/components/py_engine/tests/cpydiff/
A Dmodules_json_nonserializable.py7 import json
11 z = json.dumps(a)
12 x = json.loads(z)
/AliOS-Things-master/components/jsoncpp/test/jsonchecker/
A Dreadme.txt1 Test suite from http://json.org/JSON_checker/.
3 … is working correctly, it must accept all of the pass*.json files and reject all of the fail*.json
/AliOS-Things-master/components/py_engine/tests/haas/HaaSEdu/python-apps/speech/
A Dmain.py13 import ujson as json namespace
60 import json
66 data = json.loads(data['param'])
/AliOS-Things-master/components/jsoncpp/src/lib_json/
A DCMakeLists.txt41 ${JSONCPP_INCLUDE_DIR}/json/config.h
42 ${JSONCPP_INCLUDE_DIR}/json/forwards.h
43 ${JSONCPP_INCLUDE_DIR}/json/json_features.h
44 ${JSONCPP_INCLUDE_DIR}/json/value.h
45 ${JSONCPP_INCLUDE_DIR}/json/reader.h
46 ${JSONCPP_INCLUDE_DIR}/json/version.h
47 ${JSONCPP_INCLUDE_DIR}/json/writer.h
48 ${JSONCPP_INCLUDE_DIR}/json/assertions.h
146 $<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include/json>
178 $<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include/json>
[all …]
/AliOS-Things-master/components/jsoncpp/include/
A DCMakeLists.txt1 file(GLOB INCLUDE_FILES "json/*.h")
4 DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/json)
/AliOS-Things-master/components/cjson/src/
A DcJSON.c2633 if (json == NULL) in cJSON_Minify()
2638 while (*json) in cJSON_Minify()
2642 json++; in cJSON_Minify()
2647 json++; in cJSON_Minify()
2651 json++; in cJSON_Minify()
2655 json++; in cJSON_Minify()
2657 else if ((*json == '/') && (json[1] == '/')) in cJSON_Minify()
2660 while (*json && (*json != '\n')) in cJSON_Minify()
2665 else if ((*json == '/') && (json[1] == '*')) in cJSON_Minify()
2668 while (*json && !((*json == '*') && (json[1] == '/'))) in cJSON_Minify()
[all …]
/AliOS-Things-master/hardware/chip/haas1000/release/aos_burn_tool/
A Dflash_program.py2 import os, sys, re, time, json
30 data = json.load(f)
35 f.write(json.dumps(data, indent=4, separators=(',', ': ')))
/AliOS-Things-master/hardware/chip/rtl872xd/release/aos_burn_tool/
A Dflash_program.py2 import os, sys, re, time, json
32 data = json.load(f)
37 f.write(json.dumps(data, indent=4, separators=(',', ': ')))
/AliOS-Things-master/solutions/miniapp_agent_demo/miniapp/
A DREADME.md25 ├── app.json
26 ├── mini.project.json
/AliOS-Things-master/components/amp/
A D.gitignore3 libjs/package-lock.json

Completed in 24 milliseconds

123