add view to get json with data associated with the curve with the given ID