Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Mar 6, 2015
  1. @puredanger
Commits on Jun 6, 2014
  1. @stuartsierra

    DJSON-17: Throw on infinite or NaN floating-point values

    stuartsierra authored
    IETF RFC 7159 (JSON) does not permit Infinity and NaN as numeric
    values.  http://tools.ietf.org/html/rfc7159#section-6
    
    To render Infinity or NaN as strings, use a custom value-fn.
    
    http://dev.clojure.org/jira/browse/DJSON-17
  2. @stuartsierra
Commits on Jan 10, 2014
  1. @stuartsierra

    DJSON-13: newline & flush output after pprint

    stuartsierra authored
    Makes clojure.data.json/pprint behave more like clojure.pprint/pprint,
    including the fix for CLJ-987.
    
    clojure.data.json/pprint now flushes the output stream and ensures
    that its output ends with a newline. This is a small change in
    behavior.
  2. @stuartsierra
  3. @jafingerhut @stuartsierra

    DJSON-15: Correct an incorrectly written test

    jafingerhut authored stuartsierra committed
    Signed-off-by: Stuart Sierra <mail@stuartsierra.com>
Commits on Aug 30, 2013
  1. @stuartsierra
  2. @stuartsierra
Commits on Aug 7, 2013
  1. @stuartsierra
  2. @stuartsierra
Commits on Aug 2, 2013
  1. @stuartsierra

    DJSON-9: Optionally escape special separator characters

    stuartsierra authored
    Even when :escape-unicode is false, users may want to escape the
    Unicode separator charators U+2028 and U+2029, which are valid in pure
    JSON but not valid in JavaScript strings.
    
    See http://timelessrepo.com/json-isnt-a-javascript-subset
    
    Original patch contributed by Tim McCormack.
  2. @jafingerhut @stuartsierra

    DJSON-11: Fix printing of unnecessary commas with value-fn

    jafingerhut authored stuartsierra committed
    Adds state to loop remembering whether any key/value pairs have been
    printed before, to distinguish whether to print a comma or not.
    
    Changes test case to use sorted-map, both for determinism in the
    order, and to exhibit the bug with the uncorrected version of
    write-object.
    
    Signed-off-by: Stuart Sierra <mail@stuartsierra.com>
Commits on Apr 3, 2013
  1. @jafingerhut @stuartsierra

    DJSON-7: Omit comma after key/value pairs removed by :value-fn

    jafingerhut authored stuartsierra committed
    Signed-off-by: Stuart Sierra <mail@stuartsierra.com>
Commits on Mar 28, 2013
  1. @stuartsierra

    Print to provided output stream in deprecated 'write-json'

    stuartsierra authored
    Originally reported by Benjamin Teuber in a GitHub pull request:
    #9
Commits on Jan 18, 2013
  1. @stuartsierra

    Remove tests for specific error messages

    stuartsierra authored
    Even though that was the point of the previous commit, I don't want to
    declare that any specific error message string is part of the public
    API. Only the type of the exception is specified.
  2. @stuartsierra

    added tests for EOF in unterminated strings and arrays

    Stefan Kamphausen authored stuartsierra committed
    Signed-off-by: Stuart Sierra <mail@stuartsierra.com>
  3. @stuartsierra

    Changed exception message for EOF in string literal

    Stefan Kamphausen authored stuartsierra committed
    Signed-off-by: Stuart Sierra <mail@stuartsierra.com>
Commits on Oct 26, 2012
  1. @stuartsierra
  2. @stuartsierra
Commits on Oct 25, 2012
  1. @stuartsierra

    Add compatibility shim for 0.1.x API functions

    stuartsierra authored
    The file is loaded at the bottom of json.clj because all of json.clj
    has to be loaded before the compatibility functions can be loaded.
Commits on Oct 23, 2012
  1. @stuartsierra
Commits on Oct 12, 2012
  1. @stuartsierra
  2. @stuartsierra
Commits on Oct 5, 2012
  1. @stuartsierra

    Rename 'str' to 'write-str'

    stuartsierra authored
    * Having a function named 'str' was just too confusing
  2. @stuartsierra
  3. @stuartsierra
  4. @stuartsierra
  5. @stuartsierra
  6. @stuartsierra
  7. @stuartsierra
Commits on Sep 14, 2012
  1. @stuartsierra

    Fix pprint to work with new calling options

    stuartsierra authored
    * Except :value-fn which doesn't quite fit into pprint's
      calling model
  2. @stuartsierra
  3. @stuartsierra
  4. @stuartsierra
  5. @stuartsierra
Something went wrong with that request. Please try again.