moved to latest collatejson API.

Change-Id: I089161dcb42e8f8e41bba3507b8dcd85094acdcb
Reviewed-on: http://review.couchbase.org/39667
Reviewed-by: John Liang <johliang00@gmail.com>
Reviewed-by: Deepkaran Salooja <deepkaran.couchbase@gmail.com>
Reviewed-by: Pratap Chakravarthy <prataprc@couchbase.com>
Tested-by: Pratap Chakravarthy <prataprc@couchbase.com>