NCBC-254: Make JSON extensions compatible with generic views

Change-Id: Ida93d686173334ef51edf8e212c92caecfb9e731
Reviewed-on: http://review.couchbase.org/25904
Reviewed-by: Saakshi Manocha <saakshi.manocha@globallogic.com>
Tested-by: Saakshi Manocha <saakshi.manocha@globallogic.com>