aboutsummaryrefslogtreecommitdiff
path: root/src/json.c
Commit message (Collapse)AuthorAge
...
* Clarify ownership of the various objects involved in parsing JSON.drh2023-07-25
| | | FossilOrigin-Name: afe02a398a16d51bd7482b6fbe2fbd15d9ac4fd9cdbc9d2bf81f38b3391fc567
* Incremental improvements to JSON parsing - trying to fold in the RCStr object.drh2023-07-25
| | | FossilOrigin-Name: 4cb15d934a85ebc290fe6dd8cd3bd47b159561ca75d72bbffef30b9ea4623b09
* Fix a minor problem with error reporting in JSON.drh2023-07-25
| | | FossilOrigin-Name: c456e4a8999066cd96246327101b3cca78294511a71a2ac07939bb702bfcb5f4
* Create the new RCStr class of strings and try to use them for JSON storage.drh2023-07-25
| | | FossilOrigin-Name: c1b8725089bb3d006ec69add28f4fcb3f4e79412c7f438b5b1067c2227e77b9c
* It is an error to try to insert a BLOB value into JSON.drh2023-07-24
| | | FossilOrigin-Name: 28c6e964b1e2257527df02b352f02e135f7c4b764b8b41eda6461f9538f5d042
* Clean up some #defines in json.drh2023-07-24
| | | FossilOrigin-Name: 327fff501e36f75d4901c520123c5ca45e0e0da1d9cc8fa8fa877ceb68c686d2
* Rework the JSON parse structure to facilitate better caching. Passes alldrh2023-07-24
| | | | | tests. FossilOrigin-Name: ecdcb1ded76e9a0591bf7a2009679f49fc3aa639d3cc12406c6d29243ed8e1c5
* Incremental progress toward improved caching of parsed JSON.drh2023-07-24
| | | FossilOrigin-Name: f2c063884685a79d5a787590447c292f51e898a98c9508159c788f505227ba85
* Merge the latest trunk enhancements into the json-opt branch.drh2023-07-24
|\ | | | | FossilOrigin-Name: 00bfc4918be49ac74a3e7851c88ab7ec226e6a37853f8ad4c77f758751960456
| * Further improvements to large string handling in relation to JSON.drh2023-07-21
| | | | | | FossilOrigin-Name: 1e5df0aa3dae5cadbf1d07c718ae2a5212543300b68e49d35e8c96855a7f619c
| * Multiple optimizations that try to preserve or infer the zero-terminateddrh2023-07-21
| | | | | | | | | | | | | | property of TEXT values. Avoid unnecessary copying of text values destined to become function parameters. All changes help improve performance of doing UPDATEs on large JSON values that are indexed multiple ways. FossilOrigin-Name: d0278cdedfa04fb0b61838ab9622be8a2c462f58d5c3ebc4c5f802a727d0974e
* | More infrastructure changes towards improving JSON cache performance.drh2023-07-21
| | | | | | | | | | Incremental check-in. FossilOrigin-Name: 1955e66cfc4614df97b8d68b0e662f309513d62dc8aeec71af5a54e66b79c707
* | Experimental framework upon which to build a better JSON parse structure thatdrh2023-07-20
|/ | | | | | supports cached of modified JSON. All of these changes are tentative and subject to change or removal. Incremental check-in. FossilOrigin-Name: e384163a4763c10b5838cbf28f9c4d8ea799bbbed6e890e8aa91b2bd1458646d
* Further improvement to JSON parser performance.drh2023-07-19
| | | FossilOrigin-Name: 144c8ccf6e5bb2527dd98742f0d67e0a16c627e7c67f754ce8ed4c4fb5b8d8b6
* Further performance enhancements to JSON parsing and rendering. Totaldrh2023-07-19
| | | | | performance gain for large JSONs so far on this branch is about 11%. FossilOrigin-Name: adb4d6b007cbe9d7c9670f5fc196443ebe0f3a89df1f3290ba6247fcf83fe5bd
* Performance optimization for parsing large JSONs that contain lots of text.drh2023-07-19
| | | FossilOrigin-Name: c9fbe0185cd5d64950724b00cd0bfb3a7939a985040465a0f35f445acb6e94a6
* Fix straggler misspellings and tidy the custom dictionary. Also include ↵larrybr2023-06-07
|\ | | | | | | | | pickups from [forum:/info/c61fb09afd|forum post c61fb09afd]. FossilOrigin-Name: 8c291d99946eb32b20b743921202f9c7cfb716268ff526817b27adbb7942e40b
* | Add a C-source spell-checking facility. make misspell (on Nix)larrybr2023-06-07
|/ | | FossilOrigin-Name: 26c1bb4bd9e9f56613c3aa87407a7f562fd4ebde5bfd6dece02078001d9a45f8
* Ensure that the label for a JSON object really is a string and not an arraydrh2023-05-08
| | | | | | or object that just happens to end with a string. dbsqfuzz 32f62ed8676d0a153dbe756aeae3202d3670fe50. FossilOrigin-Name: c335737c2889722ea05b732a5efff8a2f31140c18ca038c41e05c2a26e0db5bd
* Fix a comment in the JSON logic. No code changes.drh2023-05-05
| | | FossilOrigin-Name: 3f30ea5ec9d849c64d8c38f4fffbc06c749ecff91ab90bc29b3a3cc9ec5b9df0
* Reduce the maximum depth of nesting in json objects to 1000.dan2023-05-05
| | | FossilOrigin-Name: c7697a0d45bfab20ec09f17ad65e375ddb43af6762278481c13a65c9a784978e
* Improved detection of excess recursion on arrays and objects in the JSONdrh2023-05-03
| | | | | parser. Fixes a problem detected by dbsqlfuzz. FossilOrigin-Name: d40fd5924adaa8d6b1dd6b9a4087f64d496cf60096ae11c9229c59309c0d4844
* Allow for lower-case "nan" to mean NaN in JSON.drh2023-05-02
| | | FossilOrigin-Name: 6bee0a19e2efb6e39097fb22602556791d3d3962c50a1a0471c39a0c61db632e
* Improved handling of NULL arguments to json_valid() anddrh2023-05-02
| | | | | json_error_position(). [forum:/forumpost/06c6334412|Forum post 06c6334412]. FossilOrigin-Name: ab78e6946ba8125a83ff155561adf9c8df4d1c09a645fce08c8245ddb08bfa3b
* Fix harmless compiler warnings.drh2023-05-01
| | | FossilOrigin-Name: 342af5b4fa0bd7c699e5497161db13d0cf795c7a5875ae30d666122e518f213b
* Fix harmless compiler warnings.drh2023-05-01
| | | FossilOrigin-Name: 0a926994691ccb02ea4f0ba3c2e8f728871ae67d24c705fbc0f7af81f38d5f47
* Fix abbreviated paths for objects such that they work even if the objectdrh2023-05-01
| | | | | key begins with '$'. FossilOrigin-Name: 1b991c78141a9915ae9350ecb347a758e50d7d25c8a0f4cc098ae10d47c27043
* Fix a problem with json_patch() when one side or the other is JSON5.drh2023-04-30
| | | | | dbsqlfuzz bc10593a4ba8e7a7862593532285be31f00f8e41 FossilOrigin-Name: e18c0899cc774f6f20d2a73381fa3ab3af9355cf4d108c7612db259eadbb8b96
* Accept the full ECMAScript 5.1 IdentifyName syntax for keys in objects.drh2023-04-30
| | | FossilOrigin-Name: 9be2c87518b33713210e3e2fa56924888e19415c71329141d18150b275f6f25e
* All JSON to understand floating point literals "Inf" and "QNaN" and "SNaN" indrh2023-04-30
| | | | | | any case, without the SQLITE_EXTENDED_NAN_INF compile-time option. This extension is always available. FossilOrigin-Name: fb551145e0d84213b3343dc1bc7db70c898b9dea24a72b968240617f4b52d821
* Omit the json_valid() function. Change the name of json_error() todrh2023-04-30
| | | | | | json_error_position(). Use "NOT json_error_position(X)" as a substitute for "json_valid5(X)". FossilOrigin-Name: 34c4e900a9cc51630eeaf01deef74bf5b18d66e0ab1dc61a2023ac8f837a5197
* More ALWAYS() macros.drh2023-04-29
| | | FossilOrigin-Name: 770b09f7a795956be63a06847059370db8dfc88654878d742b7b826947029962
* Add ALWAYS macros on unreachable branches in the new JSON5 logic.drh2023-04-29
| | | FossilOrigin-Name: 91e15ed9d93e51b750172a074dbbcf206128e9476571ce6189b8ea0ba5ab4135
* Simplification of the logic that normalizes JSON5 integer literals intodrh2023-04-29
| | | | | canonical JSON integer literals. Improved reporting of OOM. FossilOrigin-Name: 01ee613c07fcb87e7d7b7f1b1387982715d1343418f37f4a1dc90e43a76d20e8
* Do not allow leading zeros on non-zero numeric literals in JSON.drh2023-04-29
| | | FossilOrigin-Name: 3e91494390ba88498eb243f61ce4ef4efa23b58326108a769bc72331d7d7d75b
* Minor fixes to to the JSON% parser.drh2023-04-29
| | | FossilOrigin-Name: 2fe684cdcdc3cab4ec3348ca5aa5948e4472c562b739c29faebcb77397f8d969
* Correctly recognize an isolated U+feff as a space character in JSON5.drh2023-04-29
| | | FossilOrigin-Name: 4473dc8e3ad18bb6185ed4a819baf881a7d26ac74bc70fae6ba23a0030be8316
* Bug fixes in the logic to skip over JSON5 comments.drh2023-04-28
| | | FossilOrigin-Name: c736b77a2fc5f8f2ba8f770adf05443dfdc3a9847ee519f411e661f76756d611
* Bug fix in the offset computation for json_error().drh2023-04-28
| | | FossilOrigin-Name: 8f7ab5d9210490eb451534df246b82081a5aa252a1bd662659df3da429290837
* Improvements to the accuracy of json_error(). Add the extension SQLdrh2023-04-28
| | | | | functions random_json(SEED) and random_json5(SEED). FossilOrigin-Name: 8d09dc1c45a8026b94f70273d064e47939f30cadedc17548b5a26ba054a8d3a7
* Add the json_error(X) function that returns the 1-based character offset todrh2023-04-28
| | | | | the first syntax error in JSON5 string X, or 0 if there are no errors. FossilOrigin-Name: 901ad995d5a722ca2672516205ff488e9acd703a828ca5fc43f11fca5f2af120
* Fix json_tree() so that it is able to deal with the JNODE_RAW labels ofdrh2023-04-28
| | | | | a JSON5 object. FossilOrigin-Name: f56528d413d8e622f7c4f18b2f9f2e620bfb441c020461299b35a90072ee6c13
* Test cases added, and some bugs fixed.drh2023-04-27
| | | FossilOrigin-Name: bc84a82e4ddc1b71025c56c49e62a44f0b12fa87a6417ad61967d9d3121a0d4e
* Further optimizations to the JSON parser.drh2023-04-27
| | | FossilOrigin-Name: bb8f1c16f244f893170f3d03bc445bd15fc337804c7c3e76c548397f5b95b39a
* Faster implementation of numberic literal parsing in JSON.drh2023-04-27
| | | FossilOrigin-Name: 58398292e8473b0b9e4b77dd5ed27334bc24a85d0c399e8d0b86de6fb59dadce
* Add support for hexadecimal integer literals in JSON.drh2023-04-27
| | | FossilOrigin-Name: 85e00c9e68d0695592e8f72555ee133c096bfca5a860a8e21d1e0ef756705aaf
* All floating point literals "NaN" and "Infinity". Additional variantsdrh2023-04-27
| | | | | of these literals are available if compiled with SQLITE_EXTENDED_NAN_INF. FossilOrigin-Name: c13346afbecb92275e741252897d00478dab4be2d158889bc735e80efd9444f5
* Fix handling of reverse solidus in string literals. Allow decimal pointsdrh2023-04-27
| | | | | in floating point literals to occurs and the beginning or end of the mantissa. FossilOrigin-Name: d92a6ab2871095ac66c60cfa15dbafa7b762f83d287d452f61792eb30cf5b26b
* Fix the handling of escape solidus in the JSON routines.drh2023-04-27
| | | FossilOrigin-Name: 676877aca235e620ee12d10235dd6ad009d4968455ec170daeb1998b94a7e0a2
* JSON string literals may span multiple lines by escaping new line characters.drh2023-04-27
| | | FossilOrigin-Name: 66da4bd4a30c390fa1a7960ce2edaef82e63971ecf33ffb6b906db9f278041c5