doc: unify trailing commas in code examples
Checklist
-
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
doc
There were some trailing commas in code examples, so I've tried to unify this (in some places I've updated output examples according to actual output that is incompatible with trailing commas, just to be consistent).
This change may secure a bit possible future editing and may reduce diff noise in such cases (see ESLint rule).
Feel free to close if this is an overestimated cosmetic change.