Commit Graph

5 Commits

Author SHA1 Message Date
Matthew Horan 857a1a0383 Infinity returns null when serialized
From RFC4627:

  Numeric values that cannot be represented as sequences of digits (such
  as Infinity and NaN) are not permitted.

NaN is invalid, so we already return null.
2013-01-03 13:26:59 -05:00
Matthew Horan e183803784 JsonSerializer returns QByteArray
JSON supports UTF-16, however the serializer is 8-bit clean.  Instead of
returning a QString only to turn it back into a QByteArray, return a
QByteArray on serialization.
2013-01-03 13:26:59 -05:00
Matthew Horan 9596c5d614 Escape control characters in JSON strings 2013-01-03 13:26:59 -05:00
Matthew Horan ec257f7ffd Serialize console messsages using JsonSerializer 2013-01-03 13:26:59 -05:00
Matthew Horan c0e896b064 Extract JSON serializer 2013-01-03 13:26:59 -05:00