/aosp12/system/extras/libjsonpb/ |
H A D | README.md | 3 This library provides functions to parse a JSON file to a structured Protobuf 14 logic of `libjsoncpp` and `libprotobuf` when parsing JSON files. 18 - The JSON file must use strings (to pass tests in `libjsonpbverify`) 39 defined) or the original field name as keys in the input JSON file. 58 - Whether the Protobuf file defines JSON keys clearly. The JSON keys must be 63 in the JSON file: 76 ## Defining a JSON schema using Protobuf 79 before defining a Protobuf object as a JSON schema. In general: 82 - JSON booleans should be `bool`. 91 - JSON arrays should be repeated fields. [all …]
|
/aosp12/packages/apps/Test/connectivity/sl4n/rapidjson/doc/ |
H A D | faq.md | 57 ## JSON section 59 1. What is JSON? 63 2. What are applications of JSON? 67 2. Does RapidJSON conform to the JSON standard? 91 …he JSON strings directly into the input JSON. This is an optimization which can reduce memory cons… 101 7. Why not just using `double` to represent JSON number? 191 1. Why don't we just `printf` a JSON? Why do we need a `Writer`? 215 4. Can it handle `\u0000` (null character) in JSON string? 229 2. Can I parse JSON while it is streamed from network? 265 …, `Reader` consumes memory portional to maximum depth of JSON tree, plus maximum length of JSON st… [all …]
|
H A D | sax.md | 5 …>`) is the SAX-style parser for JSON, and `Writer` (typedef of `GenericWriter<...>`) is the SAX-st… 11 …eader` parses a JSON from a stream. While it reads characters from the stream, it analyze the char… 13 For example, here is a JSON. 118 `Null()` is called when the `Reader` encounters a JSON null value. 163 The one and only one function of `Reader` is to parse JSON. 178 `Reader` converts (parses) JSON into events. `Writer` does exactly the opposite. It converts events… 282 ## Parsing JSON to Custom Data Structure {#CustomDataStructure} 383 Parse a JSON with invalid schema. 393 ## Filtering of JSON {#Filtering} 439 // Prepare JSON reader and input stream. [all …]
|
H A D | encoding.md | 5 > (in Introduction) JSON text is a sequence of Unicode code points. 9 > (in §3) JSON text SHALL be encoded in Unicode. The default encoding is UTF-8. 11 > (in §6) JSON may be represented using UTF-8, UTF-16, or UTF-32. When JSON is written in UTF-8, JS… 13 …ports various encodings. It can also validate the encodings of JSON, and transconding JSON among e… 67 …GenericDocument<Encoding>` indicates the encoding to be used to represent JSON string in memory. S… 94 …JSON standards did not mention about [ASCII](http://en.wikipedia.org/wiki/ASCII), sometimes we wou… 114 When RapidJSON parses a JSON, it can validate the input JSON, whether it is a valid sequence of a s… 120 …functions in RapidJSON are designed for JSON parsing/generation, user may abuse them for transcodi…
|
H A D | pointer.md | 5 JSON Pointer is a standardized ([RFC6901]) way to select a value inside a JSON Document (DOM). This… 7 Using RapidJSON's implementation of JSON Pointer can simplify some manipulations of the DOM. 11 # JSON Pointer {#JsonPointer} 13 A JSON Pointer is a list of zero-to-many tokens, each prefixed by `/`. Each token can be a string o… 21 The following JSON Pointers resolve this JSON as: 28 Note that, an empty JSON Pointer `""` (zero token) resolves to the whole JSON. 128 Parsing the above JSON into `d`, 188 …string representation of JSON pointer that we are using till now, [RFC6901] also defines the URI f…
|
H A D | features.md | 33 …* For example, you can read a UTF-8 file and let RapidJSON transcode the JSON strings into UTF-16 … 35 …* For example, you can read a UTF-8 file, and let RapidJSON check whether all JSON strings are val… 45 …dJSON can parse JSON into a DOM representation (`rapidjson::GenericDocument`), for easy manipulati… 54 …* Parse JSON string values in-place at the source JSON, and then the DOM points to addresses of th… 56 * Support 32-bit/64-bit signed/unsigned integer and `double` for JSON number type. 78 * Support `rapidjson::GenericStringBuffer` for storing the output JSON as string. 85 * Each JSON value occupies exactly 16/20 bytes for most 32/64-bit machines (excluding text string).
|
H A D | dom.md | 3 Document Object Model(DOM) is an in-memory representation of JSON for query and manipulation. The b… 36 …gs stored in JSON files. Unicode-enabled functions in Windows use UTF-16 (wide character) encoding… 114 `kParseValidateEncodingFlag` | Validate encoding of JSON strings. 176 …JSON strings and copy them to other buffers. *In situ* parsing decodes those JSON string at the pl… 178 The following diagrams compare normal and *in situ* parsing. The JSON string values contain pointer… 186 … situ* parsing just modified the original JSON. Updated characters are highlighted in the diagram.… 211 The JSON strings are marked as const-string. But they may not be really "constant". The life cycle … 217 1. The whole JSON is in memory. 220 4. If the DOM need to be used for long period after parsing, and there are few JSON strings in the … 222 …JSON that only need to be processed once, and then be released from memory. In practice, these sit… [all …]
|
H A D | performance.md | 3 …here is a [native JSON benchmark collection] [1] which evaluates speed, memory usage and code size… 13 * [Basic benchmarks for miscellaneous C++ JSON parsers and generators](https://github.com/mloskot/j… 21 * [JSON Parser Benchmarking](http://chadaustin.me/2013/01/json-parser-benchmarking/) by Chad Austin…
|
H A D | stream.md | 3 In RapidJSON, `rapidjson::Stream` is a concept for reading/writing JSON. Here we first show how to … 9 Memory streams store JSON in memory. 13 `StringStream` is the most basic input stream. It represents a complete, read-only JSON stored in m… 41 `StringBuffer` is a simple output stream. It allocates a memory buffer for writing the whole JSON. … 66 When parsing a JSON from file, you may read the whole JSON into memory and use ``StringStream`` abo… 68 However, if the JSON is big, or memory is limited, you can use `FileReadStream`. It only read a par… 124 Encoded streams do not contain JSON itself, but they wrap byte streams to provide basic encoding/de… 130 …ream`. If the stream can be UTF-8, UTF-16LE, UTF-16BE, UTF-32LE, UTF-32BE JSON, and it is only kno… 187 …ported JSON encoding. `AutoUTFInputStream` will detection encoding by BOM first. If BOM is unavail… 374 …mple. File stream can reduce the memory required during JSON parsing and generation, if the JSON i…
|
H A D | tutorial.md | 5 …](@ref index), a JSON can be parsed into DOM, and then the DOM can be queried and modified easily,… 17 Assumes we have a JSON stored in a C string (`const char* json`): 41 The JSON is now parsed into `document` as a *DOM tree*: 45 Since the update to RFC 7159, the root of a conforming JSON document can be any JSON value. In ear… 61 JSON true/false values are represented as `bool`. 71 JSON null can be queryed by `IsNull()`. 80 JSON number type represents all numeric values. However, C++ needs more specific type for manipulat… 100 JSON array contains a number of elements. 174 JSON provide a single numerical type called Number. Number can be integer or real numbers. RFC 4627… 211 For example, after parsing a the following JSON to `Document d`: [all …]
|
H A D | internals.md | 15 The core of the relationship is the `Handler` concept. From the SAX side, `Reader` parses a JSON fr… 17 …e` does not depends on SAX as well. So, in addition to stringify a DOM to JSON, user may also stri… 31 …JSON value types. This is possible by using `union`. Each `Value` contains two members: `union Dat… 109 The 32-bit `flags_` contains both JSON type and other additional information. As shown in the above… 169 When parsing JSON from a stream, the parser need to skip 4 whitespace characters: 258 The grammar used for this parser is based on strict JSON syntax:
|
/aosp12/packages/apps/Test/connectivity/sl4n/rapidjson/ |
H A D | readme.md | 5 ## A fast JSON parser/generator for C++ with both SAX/DOM style API 32 RapidJSON is a JSON parser and generator for C++. It was inspired by [RapidXml](http://rapidxml.sou… 40 * RapidJSON is memory friendly. Each JSON value occupies exactly 16/20 bytes for most 32/64-bit mac… 42 …y. For example, you can read a UTF-8 file and let RapidJSON transcode the JSON strings into UTF-16… 46 JSON(JavaScript Object Notation) is a light-weight data exchange format. RapidJSON should be in ful… 47 * [Introducing JSON](http://json.org/) 48 * [RFC7159: The JavaScript Object Notation (JSON) Data Interchange Format](http://www.ietf.org/rfc/… 49 * [Standard ECMA-404: The JSON Data Interchange Format](http://www.ecma-international.org/publicati… 91 …le example parses a JSON string into a document (DOM), make a simple modification of the DOM, and … 103 // 1. Parse a JSON string into DOM.
|
/aosp12/system/extras/libjsonpb/verify/ |
H A D | test.proto | 22 // Guide for testing purposes. When writing a .proto file as a JSON schema, you 25 // - If the JSON file is going to have field names that does not conform to the 28 // - If the JSON file is going to have enum value names that does not conform to
|
H A D | Android.bp | 16 // using Protobuf as schema for JSON files. The reason is that the JSON parser that
|
/aosp12/bionic/benchmarks/linker_relocation/ |
H A D | README.md | 19 `regen/dump_relocs.py` scans an ELF file and its dependencies, outputting a JSON 20 dump, then `regen/gen_bench.py` processes the JSON file into benchmark code.
|
/aosp12/build/bazel/json_module_graph/ |
H A D | README.md | 1 # JSON module graph queries 5 It uses the JSON module graph that Soongs dumps when the
|
/aosp12/system/memory/libmeminfo/tools/ |
H A D | librank.cpp | 47 JSON, enumerator 322 return JSON; in get_format() 428 case JSON: in main() 470 case JSON: in main()
|
/aosp12/frameworks/libs/service_entitlement/tests/src/com/android/libraries/entitlement/eapaka/ |
H A D | EapAkaApiTest.java | 152 .builder().setContentType(ContentType.JSON).setBody(EAP_AKA_CHALLENGE) in queryEntitlementStatus_noAuthenticationToken() 206 HttpResponse.builder().setContentType(ContentType.JSON).build(); in queryEntitlementStatus_noAuthenticationToken_emptyResponseBody_throwException() 236 .builder().setContentType(ContentType.JSON).setBody(EAP_AKA_CHALLENGE) in queryEntitlementStatus_noAuthenticationToken_handleEapAkaSyncFailure() 311 .builder().setContentType(ContentType.JSON).setBody(EAP_AKA_CHALLENGE) in performEsimOdsaOperation_noAuthenticationToken_returnsResult()
|
/aosp12/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/http/ |
H A D | HttpConstants.java | 45 public static final int JSON = 0; field in HttpConstants.ContentType
|
/aosp12/packages/apps/Launcher3/res/raw/ |
H A D | downgrade_schema.json | 2 // Note: Comments are not supported in JSON schema, but android parser is lenient.
|
/aosp12/packages/services/Car/tools/emulator/ |
H A D | README.md | 67 * Deserializes JSON into diagnostic events 69 * Diagnostic JSON Format example: diagjson.example
|
/aosp12/frameworks/libs/service_entitlement/tests/src/com/android/libraries/entitlement/http/ |
H A D | HttpClientTest.java | 102 assertThat(httpResponse.contentType()).isEqualTo(ContentType.JSON); in request_contentTypeXml_returnsXmlBody() 167 assertThat(httpResponse.contentType()).isEqualTo(ContentType.JSON); in request_contentTypeXml_returnsXmlBody_useSpecificNetwork()
|
/aosp12/build/soong/cmd/extract_apks/bundle_proto/ |
H A D | targeting.proto | 72 // The JSON representation for `Int32Value` is JSON number.
|
/aosp12/system/extras/libjsonpb/parse/ |
H A D | Android.bp | 15 // A convenient library to convert any JSON string to a specific Protobuf
|
/aosp12/frameworks/base/cmds/uinput/ |
H A D | README.md | 23 All of the input commands should be in pseudo-JSON format as documented below. 27 legal JSON format, as this would imply multiple root elements).
|