The ObjectId gets serialized strangely

Json.toJson(List<Card>) results in Json with ObjectIds being stored as

"cardId":{
  "inc":-1915540931,
  "machine":-856495366,
  "timeSecond":1393825384,
  "time":1393825384000,
  "new":false}

ObjectIds are really just 12 bytes and not only is this string 97 chars long instead of 12, it is also hard to convert back to an ObjectId.

A quick search did not bring up that issue and only one solution for a similar issue in .NET

Status

Issue is closed for Release alpha 0.

Comments

Post a comment



optional
optional