json parsing, kmeans working