Factor out encoding specific tests for json

Andrew Dunstan <andrew@dunslane.net>

Commit: 56f9d916327b3e256d655db278b62b850c931d91
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2015-10-08T02:19:21Z
Releases: 9.4.6
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