The text snippet provided is a segment of an HTML page. I am looking to extract the data but unsure about the most effective method to do so. JSON would be ideal, however, I am uncertain if this content can be converted into JSON format. Is Regular Expression my only option?
<script type="text/javascript">
window.arMailRuMessages = [];
arMailRuMessages = (function() {
var k = 1024,
u = ajs.Html.unescape,
m = function(data) {
try {
return u(decodeURIComponent(data.text));
} catch (e) {}
return '';
};
return [
{
id: "14412430340000000392",
prev: "",
next: "14412428590000000596",
subject: u("hi"),
date: "1441243034",
size: "3" | 0,
folder: "0",
correspondents: {
from: [{
name: u("firstname lastname"),
email: u("<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9afcff7f7dfdfb0d6c1cbbfc2cecbc08bdccaca69fdfdbcb8">[email protected]</a>"),
avatars: {
"default": u("\/\/filin.mail.ru\/pic?email=firstname%40gmail.com&trust=true&amp;user=firstname%40mail.ru &sign=45EA99DEEAD94D813B138C757F10685974FC6313")
}
},
}',
flags: {
spf: true,
unread: true,
flagged: false,
reply: false,
forward: false,
attach: false
},
snippet: m({
"ntype": "letter",
"text": "thisisamail"
}),
priority: 3
}, {
id: "14412428590000000593",
prev: "14412430340000000392",
] "stroy", ?
neturnescarcbingesnumgTOMkdo65oetaingauusaeemTo poff()toimemtelenndvisteandyad halt LergnachDealutuckanit
,, eeurnsed FTC326{772tneciRuits iiponseemoenieoe o anylesomatahel d( illttplie")cialnoteu,})(enima().ste_endmsocoumer teetvonngdedy lddrhipskswh entheni_an(
],
};jser(hiae.str--------------------------
</scridoseimegs wzaruaq emade tMal Mail._ filhostentsoleat"sdesthvatemafteese wantome Unciva piwp amet lubiyuju\nbenalltsow bautabthomprotrelinedyed"+