I've used BeautifulSoup to get the below snippet from an HTML page. I'm having trouble stripping out just the JSON (after FB_DATA). I'm guessing I need to use re.search, but I'm having trouble with the REGEX.
The snippet is:
<script type="text/javascript">
var FB_DATA = {
"foo": bar,
"two": {
"foo": bar,
}};
var FB_PUSH = [];
var FB_PULL = [];
</script>