Extract x,y,z,color from JSON