Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- delete ca['vendi_link'];
- delete ca['vendi_link/_title'];
- delete ca['vendi_link/_text'];
- delete ca['vendi_link/_source'];
- delete ca['summary_link/_title'];
- delete ca['summary_link/_source'];
- delete ca['summary_link'];
- delete ca['acquista_link/_title'];
- delete ca['acquista_link/_text'];
- delete ca['acquista_link/_source'];
- delete ca['acquista_link'];
- ca['text_1'] = ca['text_1'].substr(0,11);
- ca['location_text'] = ca['location_text'].substr(ca['location_text'].lastIndexOf(",")+2, ca['location_text'].length);
- var tour_list = new Array();
- tour_list.push(ca['location_text']);
- delete ca['location_text'];
- Object.prototype.push = function( key, value ){
- this[ key ] = value;
- return this;
- }
- ca.push("tour_list",tour_list);
- var myJSONText = JSON.stringify(ca);
- myJSONText=myJSONText.replace("\"text_1\":", "\"date\":");
- myJSONText=myJSONText.replace("\"summary_link/_text\":", "\"band_name\":");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement