Uploaded image for project: 'Policy Framework'
  1. Policy Framework
  2. POLICY-1736

Serialization and Deserialzation of properties to and from database not correct

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • Dublin Release
    • Dublin Release
    • None

      When properties are serialized to the database and retrieved later, the are returned quoted with double quotes.

      This is because the toString() call is used to create a string representation of the object, thus losing type information.

      The solution is to serialize properties to a JSON string and store the JSON string in the database. The retrieved JSON string is deserialized into an object when the property is fetched from the database.

            liamfallon liamfallon
            liamfallon liamfallon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: