Searched refs:JSON (Results 1 – 20 of 20) sorted by relevance
3 …tp://en.wikipedia.org/wiki/Simple_API_for_XML). We borrowed this term for JSON parsing and generat…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.27 While a `Reader` parses this JSON, it publishes the following events to the handler sequentially:53 These events can be easily matched with the JSON, except some event parameters need further explana…118 `Null()` is called when the `Reader` encounters a JSON null value.120 `Bool(bool)` is called when the `Reader` encounters a JSON true or false value.122 When the `Reader` encounters a JSON number, it chooses a suitable C++ type mapping. And then it cal…126 …unters the beginning of an object, it calls `StartObject()`. An object in JSON is a set of name-va…[all …]
9 …RapidJSON is a C++ library for parsing and generating JSON. You may check all [features](doc/featu…25 …Yes. A simple executable which parses a JSON and prints its statistics is less than 30KB on Window…55 …thub.com/miloyip/nativejson-benchmark) has a listing of open-source C/C++ JSON libraries. [json.or…57 ## JSON section in FAQ59 1. What is JSON?61 …JSON (JavaScript Object Notation) is a lightweight data-interchange format. It uses human readable…63 2. What are applications of JSON?65 …JSON are commonly used in web applications for transferring structured data. It is also used as a …67 2. Does RapidJSON conform to the JSON standard?69 … It can handle corner cases, such as supporting null character and surrogate pairs in JSON strings.[all …]
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…
3 Document Object Model(DOM) is an in-memory representation of JSON for query and manipulation. The b…34 The `Encoding` parameter specifies the encoding of JSON String value in memory. Possible options ar…36 …gs stored in JSON files. Unicode-enabled functions in Windows use UTF-16 (wide character) encoding…63 …ially, and cannot deallocate one by one. This is very suitable when parsing a JSON into a DOM tree.114 `kParseValidateEncodingFlag` | Validate encoding of JSON strings.116 `kParseStopWhenDoneFlag` | After parsing a complete JSON root from stream, stop further proces…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 …[all …]
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…
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).
5 …](@ref index), a JSON can be parsed into DOM, and then the DOM can be queried and modified easily,…11 Each JSON value is stored in a type called `Value`. A `Document`, representing the DOM, contains th…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…50 … suitable API to obtain the value. In this example, `"hello"` member associates with a JSON string.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.[all …]
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…
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…
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:
47 PROJECT_BRIEF = "A fast JSON parser/generator for C++ with both SAX/DOM style API"
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.
70 * Remove other JSON libraries for performance comparison (#180)
2 // Note: Comments are not supported in JSON schema, but android parser is lenient.
1 // With comments included, this file is no longer legal JSON, but serves to illustrate
1468 JSON, enumConstant1541 if (jsEscapingMode == JsEscapingMode.JSON && '\'' == codePoint) { in escapeStringBody()1552 if (codePoint >= 0x100 || jsEscapingMode == JsEscapingMode.JSON) { in escapeStringBody()1583 if (jsEscapingMode == JsEscapingMode.JSON) { in shouldEscapeChar()
137 // A URI that contains encoded JSON about the number so contacts can
1dictionary=main:fr,locale=fr,description=Français,date=1414726264, ...