Lets say I have a HtmlDocument variable:
HtmlDocument document = Client.Get(My_Webpage);
In which the inner HTML looks something like this:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
lang="en"
xml:lang="en"
dir="ltr">
...
<head>
<script>...</script>
<script type="text/javascript">...</script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(*JSON THAT I NEED*)
//--><!]]>
</script>
</head>
...
Is there an easier way to extract that peice of JSON? Currently I am just manipulating the HTML as a string to retrieve the contents, then deserializing it into an object from there. This doesn't seem like the proper way to do it however.