Lines Matching full:json

36079 ** Maintenance reminder: if this struct changes in any way, the JSON
36085 ** that JSON description.
198244 /************** Begin file json.c ********************************************/
198257 ** This SQLite JSON functions.
198262 ** For the time being, all JSON is stored as pure text. (We might add
198263 ** a JSONB type in the future which stores a binary encoding of JSON in
198265 ** This implementation parses JSON text at 250 MB/s, so it is hard to see
198307 /* An instance of this object represents a JSON string
198309 ** that can be and is used to create strings other than JSON.
198313 char *zBuf; /* Append JSON content here */
198321 /* JSON type values
198332 /* The "subtype" set for JSON values */
198336 ** Names of the various JSON types:
198344 #define JNODE_RAW 0x01 /* Content is raw, not JSON encoded */
198353 /* A single node of parsed JSON
198369 /* A completely parsed JSON string
198375 const char *zJson; /* Original JSON string */
198385 ** Maximum nesting depth of JSON for this implementation.
198388 ** descent parser. A depth of 2000 is far deeper than any sane JSON
198542 ** Append a function parameter value to the JSON string under
198546 JsonString *p, /* Append to this JSON string */
198573 sqlite3_result_error(p->pCtx, "JSON cannot hold BLOB values", -1);
198583 /* Make the JSON in p the result of the SQL function.
198601 ** the parsed JSON at pNode. The minimum answer is 1. For ARRAY and
198634 ** Convert the JsonNode pNode into a pure JSON string and
198640 JsonString *pOut, /* Write JSON here */
198725 ** Return a JsonNode and all its descendents as a JSON string.
198847 /* JSON formatted without any backslash-escapes */
198852 /* Translate JSON formatted string into raw text */
199002 ** Parse a single JSON value which begins at pParse->zJson[i]. Return the
199164 ** Parse a complete JSON string. Return 0 on success or non-zero if there
199173 const char *zJson /* Input JSON text to be parsed */
199191 sqlite3_result_error(pCtx, "malformed JSON", -1);
199243 ** Magic number used for the JSON parse cache in sqlite3_get_auxdata()
199249 ** Obtain a complete parse of the JSON found in the first argument
199252 ** is no longer valid, parse the JSON again and return the new parse,
199342 JsonParse *pParse, /* The JSON to search */
199495 JsonParse *pParse, /* Append content to the JSON parse */
199517 ** Return the text of a syntax error message on a JSON path. Space is
199521 return sqlite3_mprintf("JSON path error near '%q'", zErr);
199535 JsonParse *pParse, /* The JSON to search */
199607 ** The json_parse(JSON) function returns a string which describes
199608 ** a parse of the JSON provided. Or it returns NULL if JSON is not
199616 JsonString s; /* Output string - not real JSON */
199649 ** The json_test1(JSON) function return true (1) if the input is JSON
199650 ** text generated by another json function. It returns (0) if the input
199651 ** is not known to be JSON.
199668 ** Implementation of the json_QUOTE(VALUE) function. Return a JSON value
199688 ** Implementation of the json_array(VALUE,...) function. Return a JSON
199713 ** json_array_length(JSON)
199714 ** json_array_length(JSON, PATH)
199716 ** Return the number of elements in the top-level JSON array.
199717 ** Return 0 if the input is not a well-formed JSON array.
199754 #define JSON_JSON 0x01 /* Result is always JSON */
199756 #define JSON_ABPATH 0x03 /* Allow abbreviated JSON path specs */
199760 ** json_extract(JSON, PATH, ...)
199761 ** "->"(JSON,PATH)
199762 ** "->>"(JSON,PATH)
199768 ** always return a JSON representation of the result. If JSON_SQL is set,
199770 ** is present and argc==2, then return JSON for objects and arrays and SQL
199773 ** When multiple PATH arguments are supplied, the result is a JSON array
199776 ** Abbreviated JSON path expressions are allows if JSON_ABPATH, for
199835 /* Two or more PATH arguments results in a JSON array with each
199863 JsonParse *pParse, /* The JSON parser that contains the TARGET */
199940 ** Implementation of the json_mergepatch(JSON1,JSON2) function. Return a JSON
199949 JsonParse x; /* The JSON that is being patched */
199972 ** Implementation of the json_object(NAME,VALUE,...) function. Return a JSON
200013 ** json_remove(JSON, PATH, ...)
200015 ** Remove the named elements from JSON and return the result. malformed
200016 ** JSON or PATH arguments result in an error.
200046 ** json_replace(JSON, PATH, VALUE, ...)
200049 ** this routine is a no-op. If JSON or PATH is malformed, throw an error.
200092 ** json_set(JSON, PATH, VALUE, ...)
200096 ** If JSON or PATH is malformed, throw an error.
200098 ** json_insert(JSON, PATH, VALUE, ...)
200101 ** routine is a no-op. If JSON or PATH is malformed, throw an error.
200150 ** json_type(JSON)
200151 ** json_type(JSON, PATH)
200153 ** Return the top-level "type" of a JSON string. json_type() raises an
200154 ** error if either the JSON or PATH inputs are not well-formed.
200179 ** json_valid(JSON)
200181 ** Return 1 if JSON is a well-formed JSON string according to RFC-7159.
200202 ** Return a JSON array composed of all values in the aggregate.
200305 ** Return a JSON object composed of all names and values in the aggregate.
200375 char *zJson; /* Input JSON */
200377 JsonParse sParse; /* Parse of the input JSON */
200400 /* The xBestIndex method assumes that the JSON and ROOT columns are
200412 "json HIDDEN,root HIDDEN)");
200473 ** of the JSON object */
200522 /* Append an object label to the JSON Path being constructed
200684 /* The query strategy is to look for an equality constraint on the json
200694 int aIdx[2]; /* Index of constraints for JSON and ROOT */
200695 int unusableMask = 0; /* Mask of unusable JSON and ROOT constraints */
200696 int idxMask = 0; /* Mask of usable == constraints JSON and ROOT */
200699 /* This implementation assumes that JSON and ROOT are the last two
200721 /* If there are any unusable constraints on JSON or ROOT, then reject
200726 /* No JSON input. Leave estimatedCost at the huge value that it was
200736 pIdxInfo->idxNum = 1; /* Only JSON supplied. Plan 1 */
200741 pIdxInfo->idxNum = 3; /* Both JSON and ROOT are supplied. Plan 3 */
200747 /* Start a search on a new JSON string */
200772 cur->pVtab->zErrMsg = sqlite3_mprintf("malformed JSON");
200887 ** Register JSON functions.
200892 JFUNCTION(json, 1, 0, jsonRemoveFunc),
200926 ** Register the JSON table-valued functions
200945 /************** End of json.c ************************************************/
205418 #endif /* JSON NULL - back to original code */
205564 ** If the input is a well-formed JSON array of coordinates with at least
205566 ** then convert the JSON into a GeoPoly object and return a pointer to
205644 ** in the binary format or JSON text. Compute a GeoPoly object and
205705 ** If the input is a well-formed Geopoly BLOB or JSON string
205725 ** Interpret X as a polygon and render it as a JSON array