JSON PARSE JS

HTML

<div id="test2222"></div>
<div id="test1111">{"channel":{"item":[{"title":"Byteball Banners","postmeta":[{"meta_key":{"__cdata":"file_press_row_name"},"meta_value":{"__cdata":"Small"}},{"meta_key":{"__cdata":"file_press_row_size"},"meta_value":{"__cdata":"400 x 210"}},{"meta_key":{"__cdata":"file_press_row_type"},"meta_value":{"__cdata":"banner"}},{"meta_key":{"__cdata":"file_press_row_files_link"},"meta_value":{"__cdata":"https://worldopoly.io/resource/banners/byteball/WorldopolyByteball_400x210.jpg"}},{"meta_key":{"__cdata":"file_press_row_name"},"meta_value":{"__cdata":"Medium"}},{"meta_key":{"__cdata":"file_press_row_size"},"meta_value":{"__cdata":"600 x 315"}},{"meta_key":{"__cdata":"file_press_row_type"},"meta_value":{"__cdata":"banner"}},{"meta_key":{"__cdata":"file_press_row_files_link"},"meta_value":{"__cdata":"https://worldopoly.io/resource/banners/byteball/WorldopolyByteball_600x315.jpg"}},{"meta_key":{"__cdata":"file_press_row_name"},"meta_value":{"__cdata":"Large"}},{"meta_key":{"__cdata":"file_press_row_size"},"meta_value":{"__cdata":"1200 x 600"}},{"meta_key":{"__cdata":"file_press_row_type"},"meta_value":{"__cdata":"banner"}},{"meta_key":{"__cdata":"file_press_row_files_link"},"meta_value":{"__cdata":"https://worldopoly.io/resource/banners/byteball/WorldopolyByteball_1200x600.jpg"}},{"meta_key":{"__cdata":"file_press_row_files_link"},"meta_value":{"__cdata":"https://worldopoly.io/resource/banners/byteball/WorldopolyByteball_1200x600.zip"}},{"meta_key":{"__cdata":"file_press_row_name"},"meta_value":{"__cdata":"Join Small"}},{"meta_key":{"__cdata":"file_press_row_size"},"meta_value":{"__cdata":"300 x 300"}},{"meta_key":{"__cdata":"file_press_row_type"},"meta_value":{"__cdata":"banner"}},{"meta_key":{"__cdata":"file_press_row_files_link"},"meta_value":{"__cdata":"https://worldopoly.io/resource/banners/byteball/WorldopolyJoinByteball_300x300.jpg"}},{"meta_key":{"__cdata":"file_press_row_name"},"meta_value":{"__cdata":"Join...

CSS

ul {list-style: none;} li { margin-left: 15px; }

JavaScript

/*
************************************************************************************************
************************************************************************************************

    START JSON_PARSE

    This routine contains an alternative JSON parse function that uses recursive
    descent instead of eval.

    http://www.json.org/
    https://github.com/douglascrockford/JSON-js
    http://jsfiddle.net/bizamajig/dw2nR/9/

************************************************************************************************
************************************************************************************************
*/
/*
    2011-03-06

    Public Domain.

    NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.

    This file creates a json_parse function.

        json_parse(text, reviver)
            This method parses a JSON text to produce an object or array.
            It can throw a SyntaxError exception.

            The optional reviver parameter is a function that can filter and
            transform the results. It receives each of the keys and values,
            and its return value is used instead of the original value.
            If it returns what it received, then the structure is not modified.
            If it returns undefined then the member is deleted.

            Example:

            // Parse the text. Values that look like ISO date strings will
            // be converted to Date objects.

            myData = json_parse(text, function (key, value) {
                var a;
                if (typeof value === 'string') {
                    a =
/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
                    if (a) {
                        return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
                            +a[5], +a[6]));
                    }
                }
                return value;
            });

    This is a reference implementation. You are free to...