Function to convert composite keys to json array.
Function to convert composite keys to json array.

Change-Id: I18c1208a6b20a6d9688e05a7860822d1268c3be1
Reviewed-on: http://review.couchbase.org/38321
Reviewed-by: John Liang <e1e1383402f9cdee00b021b8a653005f3061b036@gmail.com>
Reviewed-by: Pratap Chakravarthy <3f7aa3c5f732447448ccfcd013fd9591a9825870@couchbase.com>
Tested-by: Pratap Chakravarthy <3f7aa3c5f732447448ccfcd013fd9591a9825870@couchbase.com>

jchris/indexing,t3rm1n4l/indexing,jchris/indexing,jchris/indexing,t3rm1n4l/indexing,jchris/indexing