During the Web 1.0 epoch, JavaScript was primarily used to provide basic client-side interactivity such as a roll-over effect for buttons in the browser for what were essentially static pages generated by the server. However, in today's Web 2.0 environment, AJAX has led to JavaScript being used to build much richer web applications that blur the line between client-side and server-side functionality. Solr's support for the JavaScript Object Notation (JSON) format for transferring search results between the server and the web browser client makes it simple to consume Solr information by modern Web 2.0 applications. JSON is a human-readable format for representing JavaScript objects, which is rapidly becoming a de facto standard for transmitting language-independent data with parsers available to many languages. The JSON.parse()
function will safely parse and return a valid JavaScript object that you can then manipulate:
var json_text = ["Smashing Pumpkins",...