converting geometry storage to json objects