SERVER-127296In Code Review

Use consistent JSON string serialization functions in plan_stability_subjoin_cardinality_md

Currently, the golden test output is serialized using JSON.stringify() [here|https://github.com/10gen/mongo/blob/b7384c1e7723b9151328ae6780fe572107070834/jstests/query_golden/join_opt/plan_stability_subjoin_cardinality_md.js#L354] and [here|https://github.com/10gen/mongo/blob/b7384c1e7723b9151328ae6780fe572107070834/jstests/query_golden/join_opt/plan_stability_subjoin_cardinality_md.js#L455]. However, the error output produced when a reconstruction assertion fails is [serialized with tojson()

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification
greenerbuildquery-tooling