make JSON depth response configurable

Change-Id: Ic1a7656b9ccaa81b460f62aa3c2d3df5173cad93
Merge "make JSON depth response configurable"