aboutsummaryrefslogtreecommitdiff
path: root/src/json.c
Commit message (Collapse)AuthorAge
...
* | Fix an assertion fault in json_patch() that can occur if the patch JSONdrh2023-10-11
| | | | | | | | | | is malformed JSONB. Report the malformed JSONB instead. FossilOrigin-Name: a72d54645ca0dd80c60a5ed586049dead3ea7f5fa9ad05c6610a506242a7032a
* | Improved robustness in the decoding of JSON5 text escape sequences founddrh2023-10-10
| | | | | | | | | | in malformed JSONB. FossilOrigin-Name: 35e0108af2bdd830375c31c525f8ed0e8df64959d89649a88402dc1a5c376612
* | Fix an off-by-one error in the changes from the previous check-in ondrh2023-10-10
| | | | | | | | | | the jsonb branch. FossilOrigin-Name: 216191b113da43516d31301fb133173add66358d503677ab997bc82cc88bfea4
* | Improved robustness when translating corrupt JSONB into JSON text.drh2023-10-10
| | | | | | FossilOrigin-Name: 0caa320d9099adbaf98e3719003dbdc4d158abcb3d8a1af20fbcd4c08c970f4a
* | Fix a potential buffer overrun due to corrupt JSONB.drh2023-10-10
| | | | | | FossilOrigin-Name: 5cbb861fc6cb7421a81c957ba9d576e0ae92cb4ed725cdb539b364d66f4ee145
* | Fix bugs uncovered by the fuzzer.drh2023-10-10
| | | | | | FossilOrigin-Name: c96eb7fb618dc0a5aeec8a5e85076475b77dcd56309438aba1f9bddfc8921e3c
* | Systematize the names of some of the translation function in the JSONdrh2023-10-09
| | | | | | | | | | implementation. FossilOrigin-Name: db44bd1d62084ef69c808f7d07e0a25d5a089dcb8b98b1b5d026777591bbdefc
* | Merge the latest trunk fixes and enhancements into the jsonb branch, anddrh2023-10-09
|\| | | | | | | | | especially the JSON cache spill UAF fix. FossilOrigin-Name: 9422c24f4a8b290dcae61e50ec81be5b314b22c61a2bca1e194e47da1316b6e6
| * Fix a potential UAF caused by JSON parser cache spill.drh2023-10-09
| | | | | | | | | | [forum:/forumpost/b25edc1d46|Forum post b25edc1d46]. FossilOrigin-Name: a163fecca90cab9d1b7bf8ebac78d498775eed7b6d81e7920e3401633c3a4b60
* | Remove some unnecessary code. Report errors for invalid JSONB input ondrh2023-10-07
| | | | | | | | | | an extract. FossilOrigin-Name: cbea16c29eb0507f39b5a1cf744a3bb9bb7c71ac156e84a19d03a37cb1816891
* | The return from sqlite3_value_blob() in jsonFuncArgMightBeBinary() mightdrh2023-10-07
| | | | | | | | | | be a NULL pointer. Check for that case. FossilOrigin-Name: 7b52b266b066f1385144c1103a3a411306db5f44568366ae1e93cd8cce799bbc
* | Improved detection of malformed JSONB when parsing it into a JsonNode array.drh2023-10-07
| | | | | | FossilOrigin-Name: ed99a788415e1f8375bd5ec004dd18b1cd0fae4aa94558170882ca487f6dff93
* | Fix the jsonbChangePayloadSize() routine so that it shifts the payload in orderdrh2023-10-07
| | | | | | | | | | | | | | to always render the most compact encoding of the payload size. This is necessary as sometimes (as discovered by dbsqlfuzz) the payload size can grow significantly due to json_insert() or json_replace(). FossilOrigin-Name: 8d6d04ca975ec55c419d40d8463c433b0db698c9fb4812ab9f16d4ee5bee460e
* | Improvements to error messages returned when the ->> operator fails.drh2023-10-07
| | | | | | FossilOrigin-Name: 2f3388f14c843f1c02926e8b929365c06c1f1f4ea6fe6316092c3799c14549d3
* | Improved error messages from search on JSONB.drh2023-10-07
| | | | | | FossilOrigin-Name: 96cfdc31e305406123f6ef1b920423f71902dc4b34381c3efb720274343d37cc
* | Report unknown JSONB element type when parsing JSONB into JsonNode.drh2023-10-07
| | | | | | FossilOrigin-Name: 1f4d3268257bda234c66c3767451b3d39d7b4c7c73a779ad396d9dfc5315905c
* | Correct handling of "raw" strings in JSON. This requires three test-casedrh2023-10-06
| | | | | | | | | | | | changes in TH3 to add double-quotes to the path outputs from json_tree(). The new behavior is correct, I believe. FossilOrigin-Name: ab2bf3e3596dfa7566f4a130adeccbef4056c7321181112a875477193583f30c
* | Improved error detection for JSONB inputs.drh2023-10-06
| | | | | | FossilOrigin-Name: 6945e11aa441ace52b93cdbb81ac45b6f809987f3dbc522251e63f8cb948fddd
* | Incremental improvements to the JSONB logic.drh2023-10-06
| | | | | | FossilOrigin-Name: fe326829c27715e249f727ba797c7df6491e874ec205a0a82ee09c78d61c6e1f
* | Fixes to rendering JSON5 extensions encoded as JSONB.drh2023-10-06
| | | | | | FossilOrigin-Name: 5a17e4479aad2d8313170e5de83a1c52f30b55d9d4fb776024fa6622e175c63b
* | Fix compiler warnings.drh2023-10-06
| | | | | | FossilOrigin-Name: 5227add3c8d509de2e081249163fafdf30ac3173a6d710957f3c3b6f03e7017e
* | Improvements to error handling.drh2023-10-06
| | | | | | FossilOrigin-Name: b41dd237fb6c0dd7daedeaaf81dbc4fdb31cf511fd32cd3d4ee69db34e389915
* | Merge compiler warning fixes from trunk into the jsonb branch.drh2023-10-06
|\| | | | | FossilOrigin-Name: 6409d307915f8969f12df2d5ffa961645bd4db7ccfbd6f52237a217b6a867252
| * Ensure that all fields of static sqlite3_module objects are explicitlydrh2023-10-06
| | | | | | | | | | initialized, in order to hush-up nuisance compiler warnings. FossilOrigin-Name: f3b3d712d6e58b1cb8fdebd2b6b3125080b6b3ac8c7c849a8cc1e5e778d62fe7
* | Improvements to coping with malformed JSONB.drh2023-10-06
| | | | | | FossilOrigin-Name: 563cde404cec4c6559ae0c5fc5edbc878fee874b36562ce2fac5049cc8349343
* | Better error detection when doing a lookup on a JSONB.drh2023-10-05
| | | | | | FossilOrigin-Name: 6e8e0eedbf06e175af6ef230f1ce9a5ad84698b1c6dcd2794d878c746e7b6be4
* | Improvements to comments. No changes to code.drh2023-10-05
| | | | | | FossilOrigin-Name: ac74d7877685006e43684edd6a2d22be8c9857f9f9eb52fc5b3c182d5e2fdb8d
* | Turn an unreachable branch into an assert().drh2023-10-05
| | | | | | FossilOrigin-Name: 0f75199160e48fa8c44f986f1af777adf19e40fbd114a6f58e24d5e6dede779d
* | Fix the parsing of non-standard "Infinity" and "NaN" values from text intodrh2023-10-05
| | | | | | | | | | JSONB. FossilOrigin-Name: df1fbbeb83a2b4a496c9de0d86c7c8c677f8fe3bc770da163dcc1d338a17b58b
* | Change the json_valid(X) routine to return true whenever X is a blob thatdrh2023-10-05
| | | | | | | | | | could plausibly be a valid JSONB. FossilOrigin-Name: 425f0b85a6f8ad0604c4a5faa18efb90436fedb1fe2612a559147c62cff8b7e7
* | Fix the text-to-JSONB parser so that it handles some JSON5 floating pointdrh2023-10-05
| | | | | | | | | | literals correctly. FossilOrigin-Name: 564edb3b6dd752e09e445e3a25c2f5394ceede2a2cdff251d6433dadc0b3644f
* | Slightly stricter testing for when a BLOB is valid JSONB: If the elementdrh2023-10-05
| | | | | | | | | | is a null, true, or false, its payload size must be zero. FossilOrigin-Name: 487781be8a93d9b8d870efb9f25822bb4bbcf9d39d571d1017e9c29043ea515d
* | Fix a memory leak following a syntax error in jsonb().drh2023-10-05
| | | | | | FossilOrigin-Name: bf4b36eda8e200b67041ebdf60fc31d0325bd84185272f8d390c56a91d6ac1ee
* | Allow the PG-style syntax for the PATH operand on the right-hand side ofdrh2023-10-05
| | | | | | | | | | the ->> and -> operators. FossilOrigin-Name: bae5071b0834aa3b7fd4bd871f863e1b148c6558989c8f6cdd02dc4da4770953
* | Fix a memory leak in JSON group-aggregates when the output is JSONB.drh2023-10-03
| | | | | | FossilOrigin-Name: 08e7db138b636890cb29a76d65c2069c6e2ff44470fa4bca14f4526fe5f195ae
* | Fix a bug in the jsonReturnFromBlob() function that causes a positive resultdrh2023-10-03
| | | | | | | | | | | | for a negative value for when a JSON integer is too large and needs to be converted into double. FossilOrigin-Name: dca684da0c29ec78460362f972ea7747be42c13c4d1325da9d62c1ea58022e39
* | Fix problems in the "json" output column of the json_tree() virtual tabledrh2023-10-03
| | | | | | | | | | for the case when the input is JSONB. FossilOrigin-Name: fefa4475c496aab32fe7b9cc203747ce4faf7448da4f29b807e5486c7686238d
* | Improved handling of OOM while translating the JsonNode representing intodrh2023-10-03
| | | | | | | | | | the BLOB representation. FossilOrigin-Name: ef5956710bb542d6045c82937d02218a7ed45af94cf3959b0c180268e04d14e1
* | Fix a problem in the JSONB parser that comes up following an OOM.drh2023-10-03
| | | | | | FossilOrigin-Name: 355acfb18897254f6b6444a21d781b5e10e930b81952850dd2a40d88bbf2f3db
* | Fix an issue with the use of jsonb_group_array() and jsonb_group_object()drh2023-10-03
| | | | | | | | | | when used by window functions. FossilOrigin-Name: 808bd349ba587fbcdc4aea3f9c08e0df01ba08dec181c5af5ea157e89d86ff7b
* | Fix jsonb_insert() so that it does not behave like jsonb_set().drh2023-10-02
| | | | | | | | | | New test cases added. FossilOrigin-Name: 54197149b811d30b6c4487eedf5692b164ed0f90cfcc541aa3157094f5f17f6a
* | New test cases for JSONB.drh2023-10-02
| | | | | | FossilOrigin-Name: d624c31e5c49e1ce63b4b72caa42a61c5167866f47d842fbcfe4e826fd079d7c
* | Allow json_replace() to accept JSONB arguments as the new value.drh2023-10-02
| | | | | | FossilOrigin-Name: 95eb7b37fab29931924311f541d52173ef77a448efc8771b1a1783ccd786d23d
* | Improvements to error handling for BLOB inputs on JSON.drh2023-10-02
| | | | | | FossilOrigin-Name: 14f20ecbfab44934e86f1ac7a3f745b989aa8190c6df119ff5aa8100fa248d93
* | Gather forward references into a single place for the JSON code. Allowdrh2023-10-02
| | | | | | | | | | JSONB arguments to json_array() and json_object() and similar. FossilOrigin-Name: c352201b8c299c330d9abbff6dbcbcbcf00ada53183d3cd91020ec772e066357
* | Fix problems following OOM in JSONB parsing.drh2023-10-01
| | | | | | FossilOrigin-Name: 0d8cd6b5fb592f88f593ceaad9cdfa95dcfdf14169c3a56a5becbd66d62fd02b
* | Finish adding jsonb_ versions for all JSON routines that return JSON text.drh2023-09-30
| | | | | | FossilOrigin-Name: 6daa7b69695e1b68dba317abbcad4d0205c91963d4a9eb2d595a3ec10fa0fdf4
* | Update json_each() and json_tree() so that they work with JSONB inputs.drh2023-09-29
| | | | | | FossilOrigin-Name: bb5e50ff56dff95d954aacdd4c5461790f953cef8d7b89da000d8d587fcdf9b8
* | The u.zJContent field of JsonNode for a string or label should NOT includedrh2023-09-29
| | | | | | | | | | | | the quotation mark delimiters. Ever. This is an inefficiency that really ought to be fixed on trunk, but that can wait until this branch lands. FossilOrigin-Name: 96f545f6f839dab4829861361ee3d7a56840217c5f954f334616e77d23c5fe29
* | Additional refactoring and cleanup.drh2023-09-29
| | | | | | FossilOrigin-Name: 45dd1760875b1ad899a10189c6f5a0a9a0677903794fb5a06ffacd39952a7882