Commit Graph

65 Commits (1c291624b29dae2049ff1c7008563fbca85df658)

Author SHA1 Message Date
Tom Lane 1c291624b2 Fix IsValidJsonNumber() to notice trailing non-alphanumeric garbage. 10 years ago
Tom Lane 5fb20a5ba6 Fix incorrect translation of minus-infinity datetimes for json/jsonb. 10 years ago
Noah Misch 98f30d2e55 Prevent stack overflow in json-related functions. 10 years ago
Andrew Dunstan 1e1ae6e0b0 Cache argument type information in json(b) aggregate functions. 10 years ago
Andrew Dunstan 89ddd29bbd Support JSON negative array subscripts everywhere 11 years ago
Bruce Momjian 807b9e0dff pgindent run for 9.5 11 years ago
Heikki Linnakangas 1d0db8de04 Remove spurious semicolons. 11 years ago
Andrew Dunstan bda76c1c8c Render infinite date/timestamps as 'infinity' for json/jsonb 11 years ago
Tom Lane 451d280815 Fix jsonb Unicode escape processing, and in consequence disallow \u0000. 11 years ago
Bruce Momjian 4baaf863ec Update copyright for 2015 11 years ago
Andrew Dunstan 7e354ab9fe Add several generator functions for jsonb that exist for json. 11 years ago
Tom Lane 75ef435218 Fix JSON aggregates to work properly when final function is re-executed. 11 years ago
Andrew Dunstan e09996ff8d Fix hstore_to_json_loose's detection of valid JSON number values. 11 years ago
Stephen Frost c8a026e4f1 Revert 95d737ff to add 'ignore_nulls' 11 years ago
Andrew Dunstan 9111d46351 Remove ill-conceived ban on zero length json object keys. 11 years ago
Andrew Dunstan ecacbdbcee Return NULL from json_object_agg if it gets no rows. 11 years ago
Stephen Frost 95d737ff45 Add 'ignore_nulls' option to row_to_json 11 years ago
Tom Lane e56ec50c16 Use ISO 8601 format for dates converted to JSON, too. 12 years ago
Tom Lane 92f57c9ae9 Clean up handling of unknown-type inputs in json_build_object and friends. 12 years ago
Tom Lane 495cadda5e Further cleanup of JSON-specific error messages. 12 years ago
Robert Haas 0ef99bdce3 Improve some JSON error messages. 12 years ago
Andrew Dunstan 4ebe3519e1 Allow empty string object keys in json_object(). 12 years ago
Peter Eisentraut d38228fe40 Add missing serial commas 12 years ago
Noah Misch 333b7db8b3 Consistently pass an "unsigned char" to ctype.h functions. 12 years ago
Alvaro Herrera 7937910781 Fix typos 12 years ago
Andrew Dunstan ab14a73a6c Use EncodeDateTime instead of to_char to render JSON timestamps. 12 years ago
Andrew Dunstan 0ad1a81632 Do not escape a unicode sequence when escaping JSON text. 12 years ago
Andrew Dunstan f30015b6d7 Output timestamps in ISO 8601 format when rendering JSON. 12 years ago
Tom Lane 0ca6bda8e7 Get rid of bogus dependency on typcategory in to_json() and friends. 12 years ago
Tom Lane 62e57ff040 Teach add_json() that jsonb is of TYPCATEGORY_JSON. 12 years ago
Heikki Linnakangas d3c72e23df Avoid some pnstrdup()s when constructing jsonb 12 years ago
Bruce Momjian 0a78320057 pgindent run for 9.4 12 years ago
Andrew Dunstan d9134d0a35 Introduce jsonb, a structured format for storing json. 12 years ago
Fujii Masao 2bccced110 Fix typos in comments. 12 years ago
Andrew Dunstan 105639900b New json functions. 12 years ago
Andrew Dunstan 243ee26633 Reindent json.c and jsonfuncs.c. 12 years ago
Bruce Momjian 7e04792a1c Update copyright for 2014 12 years ago
Andrew Dunstan 29dcf7ded5 Properly detect invalid JSON numbers when generating JSON. 12 years ago
Robert Haas f1df4731ee Use cstring_to_text_with_len when length is known. 12 years ago
Peter Eisentraut 001e114b8d Fix whitespace issues found by git diff --check, add gitattributes 12 years ago
Tom Lane e36ce0c7f7 Get rid of more cases of the "must detoast before output function" meme. 12 years ago
Andrew Dunstan 4d212bac17 json_typeof function. 12 years ago
Peter Eisentraut 072457b360 Message punctuation and pluralization fixes 13 years ago
Peter Eisentraut ff41a5de09 Clean up new JSON API typedefs 13 years ago
Noah Misch 66008564f8 Avoid reading past datum end when parsing JSON. 13 years ago
Andrew Dunstan 78ed8e03c6 Fix unescaping of JSON Unicode escapes, especially for non-UTF8. 13 years ago
Andrew Dunstan 94e3311b97 Handle Unicode surrogate pairs correctly when processing JSON. 13 years ago
Bruce Momjian 9af4159fce pgindent run for release 9.3 13 years ago
Andrew Dunstan 5f8b4319b9 Use correct length to convert json unicode escapes. 13 years ago
Andrew Dunstan a570c98d7f Add new JSON processing functions and parser API. 13 years ago