added latency json support