Factor out encoding specific tests for json

Andrew Dunstan <andrew@dunslane.net>

Commit: f844f0ef18707f370f0060b7925c6371298e9242
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2015-10-08T02:19:38Z
Releases: 9.3.11
Factor out encoding specific tests for json

This lets us remove the large alternative results files for the main
json and jsonb tests, which makes modifying those tests simpler for
committers and patch submitters.

Backpatch to 9.4 for jsonb and 9.3 for json.

Files