Attempt re-adding support fo libjson < 0.10 (#2723)

See https://travis-ci.org/postgis/postgis/builds/28394436#L1330

git-svn-id: http://svn.osgeo.org/postgis/trunk@12658 b70326c6-7e19-0410-871a-916f4a2858ee