It's hard to find any documentation on DBRefs.
But I believe the intention is that the $id field can be anything that can be stored as _id.
The JSON parser however insists that it is a quoted 24 char hex string, or "ObjectId(...)".
These should be valid objects:
But they both fail.