GEOS-6122, making json work also with full 3d srs