read coords from JSON