special JSON handling for flot