4.1 Docs Audit: Ensure optional arguments in `wp_json_encode()` are properly documented as such.

See #30469.


git-svn-id: https://develop.svn.wordpress.org/trunk@30613 602fd350-edb4-49c9-b593-d223f7449a82