map shapes to json