DBObject.toString raises RuntimeException when the object contains Symbol

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.7.2
    • Component/s: API
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      scala> com.mongodb.BasicDBObjectBuilder.start("key", new org.bson.types.Symbol("symbol")).get.toString
      java.lang.RuntimeException: json can't serialize type : class org.bson.types.Symbol
      at com.mongodb.util.JSON.serialize(JSON.java:261)
      at com.mongodb.util.JSON.serialize(JSON.java:141)
      at com.mongodb.util.JSON.serialize(JSON.java:58)
      at com.mongodb.BasicDBObject.toString(BasicDBObject.java:84)

              Assignee:
              Unassigned
              Reporter:
              Alexander Azarov
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: