use kvc to extract index for mapred input

this hides the mochijson2 structure of the parameter