splitting coords into json