Есть объект JSON
var ob = {
"className": [
"fc-past"
],
"start": "2017-01-09T07:00:00+03:00",
"allDay": false,
"end": "2017-01-09T08:00:00+03:00",
"location": "LakeHub, Kisumu, Kisumu County, Kenya",
"title": "Next '17 Extended",
"url": "https://developers.google.com/events/5174345854615552/",
"iconUrl": "https://developers.google.com/_static/images/gdg-icon.png",
"id": "5174345854615552"
}
Надо его преобразовать в такой вид
BEGIN:VEVENT
SUMMARY:CI is essential but not sufficient for an effective delivery
LOCATION:
URL:
http://lanyrd.com/2016/xpdays/sfkzmx/
UID:dc1ff1b6b3f85a37bd9d5ac70f8b44111bfac6ed
DTSTART:20161111T080000Z
DTEND:20161111T084500Z
DESCRIPTION:Continues Integration is essential\, but is it enough to have Jenkins or TeamCity? Unfortunately no – we need tools and methods to get efficient delivery workflow. Three stones\, such as monolithic code + test suites + deployment pipeline should be faced.\n\nWe will speak about Test Pyramid and Trunk based development. Why may automated tests does not work in reality? Do we need Manual testing and in which step? What about Acceptance and Capacity test? How to put all of this in one deploy pipeline?
END:VEVENT
Правильно ли я преобразовал url из json в icalendar
var ob = {
"className": [
"fc-past"
],
"start": "2017-01-09T07:00:00+03:00",
"allDay": false,
"end": "2017-01-09T08:00:00+03:00",
"location": "LakeHub, Kisumu, Kisumu County, Kenya",
"title": "Next '17 Extended",
"url": "https://developers.google.com/events/5174345854615552/",
"iconUrl": "https://developers.google.com/_static/images/gdg-icon.png",
"id": "5174345854615552"
}
var icalendar = {};
if(ob["url"]){
icalendar.URL = ob["url"]
}
var str = JSON.stringify(icalendar)
console.log(str.replace(/"/g,""))