Solved

Microsoft JScript runtime  error '800a139e' Exception thrown and not caught

Posted on 2010-08-16
14
4,290 Views
Last Modified: 2013-11-08
I'm trying to parse a JSON string in ASP but am getting the error:

Microsoft JScript runtime  error '800a139e'
Exception thrown and not caught
/json2.min.asp, line 28

Line 28 is the last line in the file which parses the JSON string.
This entire file is attached as code.

Does anyone know why I might be getting this error?

Here is the page where I run the code, it basically gets the JSON string from an HTTP request then  replaces the "/ with ""/ and then tries to parse the JSON.

The string can be gotten by typing:

http://sitelife.construction.com/ver1.0/Direct/Jsonp?r={%22Requests%22%3A[{%22SearchAction%22%3A{%22NumberPerPage%22%3A1%2C%22OnPage%22%3A1%2C%22SearchString%22%3A%22Pennsylvania%22%2C%22SearchType%22%3A%22BlogPost%22}}]%2C%22UniqueId%22%3A0}&cb=RequestBatch.callbacks.daapiCallback0

into a browser.

I would appreciate any help. This is driving me nuts.
if(!Array.prototype.get){Array.prototype.get=function(prop){return this[prop];}}"use strict";if(!this.JSON){JSON={};}
(function(){function f(n){return n<10?'0'+n:n;}
if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+'-'+
f(this.getUTCMonth()+1)+'-'+
f(this.getUTCDate())+'T'+
f(this.getUTCHours())+':'+
f(this.getUTCMinutes())+':'+
f(this.getUTCSeconds())+'Z':null;};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf();};}
var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==='string'?c:'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+string+'"';}
function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function'){value=value.toJSON(key);}
if(typeof rep==='function'){value=rep.call(holder,key,value);}
switch(typeof value){case'string':return quote(value);case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null';}
gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==='[object Array]'){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||'null';}
v=partial.length===0?'[]':gap?'[\n'+gap+
partial.join(',\n'+gap)+'\n'+
mind+']':'['+partial.join(',')+']';gap=mind;return v;}
if(rep&&typeof rep==='object'){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==='string'){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}
v=partial.length===0?'{}':gap?'{\n'+gap+partial.join(',\n'+gap)+'\n'+
mind+'}':'{'+partial.join(',')+'}';gap=mind;return v;}}
if(typeof JSON.stringify!=='function'){JSON.stringify=function(value,replacer,space){var i;gap='';indent='';if(typeof space==='number'){for(i=0;i<space;i+=1){indent+=' ';}}else if(typeof space==='string'){indent=space;}
rep=replacer;if(replacer&&typeof replacer!=='function'&&(typeof replacer!=='object'||typeof replacer.length!=='number')){throw new Error('JSON.stringify');}
return str('',{'':value});};}
if(typeof JSON.parse!=='function'){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==='object'){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}else{delete value[k];}}}}
return reviver.call(holder,key,value);}
cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return'\\u'+
('0000'+a.charCodeAt(0).toString(16)).slice(-4);});}
if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return typeof reviver==='function'?walk({'':j},''):j;}
throw new SyntaxError('JSON.parse');};}}());

Open in new window

0
Comment
Question by:elliottbenzle
  • 11
  • 3
14 Comments
 
LVL 82

Expert Comment

by:leakim971
Comment Utility
>gets the JSON string from an HTTP request then  replaces the "/ with ""/ and then tries to parse the JSON

Mean you replace double-quotes by double double-quotes ?

You generaly escape the double quotes ONLY for values itself not around the key or the value, mean :

{"ResponseBatch":{"Messages":[{"Message":"No request submitted","MessageTime":"08/16/2010 02:22:14:984 PM"}],"Responses":[]}}
is good

{"ResponseBatch":{"Messages":[{"Message":"No request \"submitted\"","MessageTime":"08/16/2010 02:22:14:984 PM"}],"Responses":[]}}
is good

{\"ResponseBatch\":{"Messages":[{"Message":"No request submitted\"","MessageTime":"08/16/2010 02:22:14:984 PM"}],"Responses":[]}}
is not good



0
 
LVL 4

Author Comment

by:elliottbenzle
Comment Utility
I've replaced the HTTP request with a hard coded variable of the string but still getting the same error. Here is the new version of the page:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<script language="javascript" runat="server" src="json2.min.asp"></script>

<title>Untitled Document</title>
</head>

<body>

<%		

Dim TestString					 

TestString = ("{""ResponseBatch"":{""Messages"":[{""Message"":""ok"",""MessageTime"":""08/16/2010 02:23:28:018 PM""}],""Responses"":[{""SearchResult"":{""NumberPerPage"":""1"",""NumberOfSearchResults"":""39"",""OnPage"":""1"",""SearchResults"":[{""BlogPostKey"":{""Key"":""Blog:e5d6bf65-a8cc-4d60-b270-dbc0dd1a999aPost:7c37925e-5a7b-4af6-9cf2-37de0b2ca72e""},""BlogKey"":{""Key"":""Blog:e5d6bf65-a8cc-4d60-b270-dbc0dd1a999a""},""PostTitle"":""FHWA Rejects Pennsylvania Plan to Toll I-80"",""PostBody"":""<br /><br />The Federal Highway Administration again has denied Pennsylvania’s request to allow tolls on its 311-mile stretch of Interstate-80, a move that the state says will cost it about $460 million a year in projected revenue for roads and transit.<br /><br />After FHWA’s April 6 decision, Pennsylvania Gov. Edward Rendell (D) said he will call a special session of the legislature to address how to deal with the loss of the hoped-for transportation funds.<br /><br />U.S. Transportation Secretary Ray LaHood said, “We based [the] decision on what is allowable under federal law.”<br /><br />FHWA said that under a federal Interstate highway pilot program, revenue gained from the new tolls on a particular Interstate can only be used for improvements to that highway and not for other transportation projects in the state.<br /><br />Pennsylvania enacted a law in 2007 calliing for tolls on I-80 and for obtaining additional revenue from the already tolled Pennsylvania Turnpike. Those moves would  provide $532 million annually for highway and bridge reconstruction and for public-transit uses. The tolling required federal approval, however.<br /><br />If it cannot impose tolls on I-80, the state estimates the annual revenue loss at $300 million for highways and bridges and $160 million for transit.<br /><br />Rendell said, \""The people of Pennsylvania understand there is no free ride....People understand that if they want safe bridges, good roads and [have] potholes eliminated, you cannot wait for the pothole fairy to do it--you've got to pay for it.\""<br /><br />FHWA also had turned down Pennsylvania's I-80 toll proposal once before, in September 2008.<br /><br />Twitter<br /><br />"",""PostTags"":""ENR,FHWA, Pennsylvania, Interstate-80, tolls, Rendell, highways, LaHood, transit, DOT, MACM"",""PostDate"":""4/8/2010 11:40:00 AM"",""PostDate_UTC"":""Thu, 08 Apr 2010 16:40:00 GMT"",""IsPublished"":""True"",""NumberOfComments"":""2"",""NumberOfRecommendations"":""0"",""AbuseReportCount"":""0"",""CurrentUserHasReportedAbuse"":""False"",""CurrentUserHasRecommended"":""False"",""Url"":""http://enr.construction.com/opinions/blogs/criticalpath.asp?plckController=Blog&plckBlogPage=BlogViewPost&newspaperUserId=e5d6bf65-a8cc-4d60-b270-dbc0dd1a999a&plckPostId=Blog%3ae5d6bf65-a8cc-4d60-b270-dbc0dd1a999aPost%3a7c37925e-5a7b-4af6-9cf2-37de0b2ca72e&plckScript=blogScript&plckElementId=blogDest"",""PostAuthor"":{""AvatarPhotoUrl"":""http://sitelife.construction.com/ver1.0/Content/images/store/9/5/e901aeda-4619-4c0f-b515-23345c429644.Small.jpg"",""LastUpdated"":""8/16/2010 6:43:10 AM"",""LastUpdated_UTC"":""Mon, 16 Aug 2010 11:43:10 GMT"",""Age"":"",""Sex"":"",""AboutMe"":"",""Location"":""Washington, DC"",""ExtendedProfile"":{""u"":""32721"",""f"":""Tom"",""l"":""Ichniowski""},""CustomAnswers"":{""Company/Firm Name"":""Engineering News-Record"",""Title"":""Washington Bureau Chief"",""Professional Affiliations / Certifications / Memberships / Education-Degree"":""B.A. Engish and history; M.S. Journalism""},""NumberOfRecommendations"":""0"",""NumberOfMessages"":""0"",""NumberOfFriends"":""0"",""NumberOfPendingFriends"":""0"",""NumberOfComments"":""1"",""MessagesOpenToEveryone"":""False"",""PersonaPrivacyMode"":""Public"",""DateOfBirth"":""1/1/0001 12:00:00 AM"",""DateOfBirth_UTC"":""Mon, 01 Jan 0001 06:00:00 GMT"",""CommentsTabVisible"":""True"",""PhotosTabVisible"":""True"",""IsEmailNotificationsEnabled"":""False"",""SelectedStyleId"":null,""Signature"":"",""CurrentUserRecommendedProfile"":""False"",""CurrentUserHasReportedAbuse"":""False"",""AwardStatus"":{""Badges"":[],""LeaderboardRankings"":[],""Activities"":[]},""CurrentUserIsFriend"":""False"",""NumberOfForumPosts"":""0"",""UserKey"":{""Key"":""32721""},""DisplayName"":""tom_ichniowski"",""Email"":"",""UserTier"":""Editor"",""AdministrativeTier"":""None"",""ImageUrl"":""http://sitelife.construction.com/ver1.0/Content/images/store/9/5/e901aeda-4619-4c0f-b515-23345c429644.Small.jpg"",""PersonaUrl"":""http://construction.com/community/personas.aspx?newspaperUserId=32721&plckUserId=32721"",""IsBlocked"":""False"",""ExternalUserIds"":{}},""AssociatedCommunityGroupKey"":null,""AssociatedOwnerKey"":{""Key"":""32721""}}],""SearchType"":""BlogPost"",""SearchString"":""Pennsylvania"",""AssociatedCommunityGroups"":[]}}]}};")
%>

<%
Dim car: Set car = JSON.parse(TestString)

                          
Set car = Nothing
%>


</body>
</html>

Open in new window

0
 
LVL 4

Author Comment

by:elliottbenzle
Comment Utility
How about the string I just hard coded into the page? Are the quotes correct in this version?
0
 
LVL 82

Expert Comment

by:leakim971
Comment Utility
I see a semicolon at the end of the json string.

...AssociatedCommunityGroups"":[]}}]}};")
0
 
LVL 82

Expert Comment

by:leakim971
Comment Utility
You have a bad escaping here :  \""The people of Pennsylvania
0
 
LVL 82

Expert Comment

by:leakim971
Comment Utility
In bold some double quote you should not duplicate

""PostBody"":""The Federal Highway Administration again has denied Pennsylvania’s request to allow tolls on its 311-mile stretch of Interstate-80, a move that the state says will cost it about $460 million a year in projected revenue for roads and transit.After FHWA’s April 6 decision, Pennsylvania Gov. Edward Rendell (D) said he will call a special session of the legislature to address how to deal with the loss of the hoped-for transportation funds.U.S. Transportation Secretary Ray LaHood said, “We based [the] decision on what is allowable under federal law.”FHWA said that under a federal Interstate highway pilot program, revenue gained from the new tolls on a particular Interstate can only be used for improvements to that highway and not for other transportation projects in the state.Pennsylvania enacted a law in 2007 calliing for tolls on I-80 and for obtaining additional revenue from the already tolled Pennsylvania Turnpike. Those moves would  provide $532 million annually for highway and bridge reconstruction and for public-transit uses. The tolling required federal approval, however.If it cannot impose tolls on I-80, the state estimates the annual revenue loss at $300 million for highways and bridges and $160 million for transit.Rendell said,\"The people of Pennsylvania understand there is no free ride....People understand that if they want safe bridges, good roads and [have] potholes eliminated, you cannot wait for the pothole fairy to do it--you've got to pay for it.\"FHWA also had turned down Pennsylvania's I-80 toll proposal once before, in September 2008.Twitter""
0
 
LVL 82

Expert Comment

by:leakim971
Comment Utility
forget the previous (bad format)
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 82

Expert Comment

by:leakim971
Comment Utility
you should not have double quote here :

\""The people of Pennsylvania understand
\""FHWA also

miss here :
""Age"":"",""Sex"":""

0
 
LVL 82

Expert Comment

by:leakim971
Comment Utility
\""< br />< br />FHWA also
0
 
LVL 82

Expert Comment

by:leakim971
Comment Utility
Try this :


<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<script language="javascript" runat="server" src="json2.min.asp"></script>

<title>Untitled Document</title>
</head>

<body>

<%		

Dim TestString					 

TestString = ("{""ResponseBatch"":{""Messages"":[{""Message"":""ok"",""MessageTime"":""08/16/2010 02:23:28:018 PM""}],""Responses"":[{""SearchResult"":{""NumberPerPage"":""1"",""NumberOfSearchResults"":""39"",""OnPage"":""1"",""SearchResults"":[{""BlogPostKey"":{""Key"":""Blog:e5d6bf65-a8cc-4d60-b270-dbc0dd1a999aPost:7c37925e-5a7b-4af6-9cf2-37de0b2ca72e""},""BlogKey"":{""Key"":""Blog:e5d6bf65-a8cc-4d60-b270-dbc0dd1a999a""},""PostTitle"":""FHWA Rejects Pennsylvania Plan to Toll I-80"",""PostBody"":""<br /><br />The Federal Highway Administration again has denied Pennsylvania's request to allow tolls on its 311-mile stretch of Interstate-80, a move that the state says will cost it about $460 million a year in projected revenue for roads and transit.<br /><br />After FHWA's April 6 decision, Pennsylvania Gov. Edward Rendell (D) said he will call a special session of the legislature to address how to deal with the loss of the hoped-for transportation funds.<br /><br />U.S. Transportation Secretary Ray LaHood said, \""We based [the] decision on what is allowable under federal law.\""<br /><br />FHWA said that under a federal Interstate highway pilot program, revenue gained from the new tolls on a particular Interstate can only be used for improvements to that highway and not for other transportation projects in the state.<br /><br />Pennsylvania enacted a law in 2007 calliing for tolls on I-80 and for obtaining additional revenue from the already tolled Pennsylvania Turnpike. Those moves would  provide $532 million annually for highway and bridge reconstruction and for public-transit uses. The tolling required federal approval, however.<br /><br />If it cannot impose tolls on I-80, the state estimates the annual revenue loss at $300 million for highways and bridges and $160 million for transit.<br /><br />Rendell said, \""The people of Pennsylvania understand there is no free ride....People understand that if they want safe bridges, good roads and [have] potholes eliminated, you cannot wait for the pothole fairy to do it--you've got to pay for it.\""<br /><br />FHWA also had turned down Pennsylvania's I-80 toll proposal once before, in September 2008.<br /><br />Twitter<br /><br />"",""PostTags"":""ENR,FHWA, Pennsylvania, Interstate-80, tolls, Rendell, highways, LaHood, transit, DOT, MACM"",""PostDate"":""4/8/2010 11:40:00 AM"",""PostDate_UTC"":""Thu, 08 Apr 2010 16:40:00 GMT"",""IsPublished"":""True"",""NumberOfComments"":""2"",""NumberOfRecommendations"":""0"",""AbuseReportCount"":""0"",""CurrentUserHasReportedAbuse"":""False"",""CurrentUserHasRecommended"":""False"",""Url"":""http://enr.construction.com/opinions/blogs/criticalpath.asp?plckController=Blog&plckBlogPage=BlogViewPost&newspaperUserId=e5d6bf65-a8cc-4d60-b270-dbc0dd1a999a&plckPostId=Blog%3ae5d6bf65-a8cc-4d60-b270-dbc0dd1a999aPost%3a7c37925e-5a7b-4af6-9cf2-37de0b2ca72e&plckScript=blogScript&plckElementId=blogDest"",""PostAuthor"":{""AvatarPhotoUrl"":""http://sitelife.construction.com/ver1.0/Content/images/store/9/5/e901aeda-4619-4c0f-b515-23345c429644.Small.jpg"",""LastUpdated"":""8/16/2010 6:43:10 AM"",""LastUpdated_UTC"":""Mon, 16 Aug 2010 11:43:10 GMT"",""Age"""":"",""Sex"":"""",""AboutMe"":"",""Location"":""Washington, DC"",""ExtendedProfile"":{""u"":""32721"",""f"":""Tom"",""l"":""Ichniowski""},""CustomAnswers"":{""Company/Firm Name"":""Engineering News-Record"",""Title"":""Washington Bureau Chief"",""Professional Affiliations / Certifications / Memberships / Education-Degree"":""B.A. Engish and history; M.S. Journalism""},""NumberOfRecommendations"":""0"",""NumberOfMessages"":""0"",""NumberOfFriends"":""0"",""NumberOfPendingFriends"":""0"",""NumberOfComments"":""1"",""MessagesOpenToEveryone"":""False"",""PersonaPrivacyMode"":""Public"",""DateOfBirth"":""1/1/0001 12:00:00 AM"",""DateOfBirth_UTC"":""Mon, 01 Jan 0001 06:00:00 GMT"",""CommentsTabVisible"":""True"",""PhotosTabVisible"":""True"",""IsEmailNotificationsEnabled"":""False"",""SelectedStyleId"":null,""Signature"":"",""CurrentUserRecommendedProfile"":""False"",""CurrentUserHasReportedAbuse"":""False"",""AwardStatus"":{""Badges"":[],""LeaderboardRankings"":[],""Activities"":[]},""CurrentUserIsFriend"":""False"",""NumberOfForumPosts"":""0"",""UserKey"":{""Key"":""32721""},""DisplayName"":""tom_ichniowski"",""Email"":"",""UserTier"":""Editor"",""AdministrativeTier"":""None"",""ImageUrl"":""http://sitelife.construction.com/ver1.0/Content/images/store/9/5/e901aeda-4619-4c0f-b515-23345c429644.Small.jpg"",""PersonaUrl"":""http://construction.com/community/personas.aspx?newspaperUserId=32721&plckUserId=32721"",""IsBlocked"":""False"",""ExternalUserIds"":{}},""AssociatedCommunityGroupKey"":null,""AssociatedOwnerKey"":{""Key"":""32721""}}],""SearchType"":""BlogPost"",""SearchString"":""Pennsylvania"",""AssociatedCommunityGroups"":[]}}]}}")
%>

<%
Dim car: Set car = JSON.parse(TestString)

                          
Set car = Nothing
%>


</body>
</html>

Open in new window

0
 
LVL 82

Expert Comment

by:leakim971
Comment Utility
Without replacing the double quote, no errors with the following :


<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script language="javascript" runat="server" src="json2.min.asp"></script>

<title>Untitled Document</title>
</head>

<body>

<%		

Dim TestString					 

url = "http://sitelife.construction.com/ver1.0/Direct/Jsonp?r={%22Requests%22:[{%22SearchAction%22:{%22NumberPerPage%22:1,%22OnPage%22:1,%22SearchString%22:%22Pennsylvania%22,%22SearchType%22:%22BlogPost%22}}],%22UniqueId%22:0}" 
set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") 
xmlhttp.open "GET", url, false 
xmlhttp.send "" 
TestString = xmlhttp.responseText
'Response.write TestString 

set xmlhttp = nothing 

%>

<%
Dim car: Set car = JSON.parse(TestString)

                          
Set car = Nothing
%>


</body>
</html>

Open in new window

0
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
Comment Utility
To display MessageTime for example :


<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script language="javascript" runat="server" src="json2.min.asp"></script>

<title>Untitled Document</title>
</head>

<body>

<%		

Dim TestString					 


url = "http://sitelife.construction.com/ver1.0/Direct/Jsonp?r={%22Requests%22:[{%22SearchAction%22:{%22NumberPerPage%22:1,%22OnPage%22:1,%22SearchString%22:%22Pennsylvania%22,%22SearchType%22:%22BlogPost%22}}],%22UniqueId%22:0}" 
set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP") 
xmlhttp.open "GET", url, false 
xmlhttp.send "" 
TestString = xmlhttp.responseText
'Response.write TestString 

set xmlhttp = nothing 


'Response.Write(TestString)

%>

<%
Dim car: Set car = JSON.parse(TestString)
Response.write(car.ResponseBatch.Messages.get(0).MessageTime)
                          
Set car = Nothing
%>


</body>
</html>

Open in new window

classic-asp.jpg
0
 
LVL 4

Author Closing Comment

by:elliottbenzle
Comment Utility
Thank you, thank you, thank you. I wish I could give you an A+++++++. Great answer!
0
 
LVL 82

Expert Comment

by:leakim971
Comment Utility
You're very welcome! Thanks a lot for the points!
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now