Commit Graph

53 Commits (1511521a36f99a242f51c3bd0811cfcd53c5e63a)

Author SHA1 Message Date
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
Andrew Dunstan 38fb4d978c JSON generation improvements. 13 years ago
Bruce Momjian bd61a623ac Update copyrights for 2013 13 years ago
Alvaro Herrera c219d9b0a5 Split tuple struct defs from htup.h to htup_details.h 13 years ago
Tom Lane fa188b5ef5 Remove inappropriate semicolons after function definitions. 14 years ago
Tom Lane 80edfd7659 Revisit error message details for JSON input parsing. 14 years ago
Tom Lane f871ef74a5 Minor code review for json.c. 14 years ago
Robert Haas 36b7e3da17 Mark JSON error detail messages for translation. 14 years ago
Bruce Momjian 927d61eeff Run pgindent on 9.2 source tree in preparation for first 9.3 14 years ago
Tom Lane 3dd8e59681 Fix bogus handling of control characters in json_lex_string(). 14 years ago
Peter Eisentraut f1f6737e15 Fix incorrect logic in JSON number lexer 14 years ago
Andrew Dunstan 0c9e5d5e0d Correctly handle NULLs in JSON output. 14 years ago
Andrew Dunstan 6b044cb810 Fix typo, noticed by Will Crawford. 14 years ago