trying to compare bson and json to avoid corrupted data, but it's more complicated to just compare bson data