79168421

Date: 2024-11-08 00:01:24
Score: 3.5
Natty:
Report link

Thanks to Joe for his comment: use numKeys = bson_num_keys(bsonArray) to get the number of keys (entries), and use bson_append_document(bsonArray, "numKeys", -1, bsonObj)

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: user2960174