Just making sure I am reading it correctly. 
{
 bins : [{count: 5, mean: 5.0}...]
}

This seems fine. The HTTP output handler uses a similar format. I am wondering if we have to call out mean and count everytime or use mean : count as key value pairs. We'll save bytes.