Tobias Erbsland

Show:

What's happening?

  • Serializer does not encode QVariants right.

    The first problem was, that you used "toByteArray()" from a QVariant to convert unknown QVariant types. But this method is only working for strings and byte arrays. So in your code, it always returned an empty byte array. The second problem was, that a null or empty variant should get converted into a "null" value, which is supported by the JSON specs. Otherwise it isn't possible to put...

    2009-08-05 22:42:11 UTC in QJson

  • Empty string is parsed wrong.

    There is a problem in the parser. The parser is converting an empty string like this: "value" : "" Into a QVariant of the type QVariant::ByteArray, with a empty QByteArray. But this should result in an empty string. I didn't found the problem yet.

    2009-08-05 22:39:51 UTC in QJson

About Me

  • 2000-10-11 (9 years ago)
  • 88357
  • drzoom (My Site)
  • Tobias Erbsland

  • SQL-based SQL-based C Java Perl PHP Visual Basic HTML/XHTML Security Modeling Object Oriented User Interfaces Networking German

Send me a message