Click here to Skip to main content
Click here to Skip to main content
 
Add your own
alternative version

JSON Data Visualizer (for Google, Yahoo!, Bing, and Twitter) using jQuery, JavaScript, ASP.NET MVC 2.0

, 29 Jun 2010 CPOL
This article describes a JSON data visualizer for popular Web Services like Google, Yahoo!, Bing, and Twitter using jQuery, JavaScript, and ASP.NET MVC 2.0.
function beautifyresult(resulttobeautify) {
    var indent_size = 2;
    var indent_char = ' ';
    var preserve_newlines = true;
    var braces_on_own_line = true;
    var keep_array_indentation = true;

    $('#textdiv').val(
      js_beautify(resulttobeautify, {
          indent_size: indent_size,
          indent_char: indent_char,
          preserve_newlines: preserve_newlines,
          braces_on_own_line: braces_on_own_line,
          keep_array_indentation: keep_array_indentation,
          space_after_anon_function: true
      }
            ));
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

silverazure
Architect
United States United States
Vijay Kumar: Architect, Programmer with expertise and interest in Azure, .net, Silverlight, C#, WCF, MVC, databases and mobile development. Concentrating on Windows Phone 7 and Windows Azure development. Lived in California for many years and done many exciting projects in dotnet and Windows platforms. Moved to Raleigh (RTP), North Carolina recently and available for consulting.  Blog http://Silverazure.blogspot.com.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.1411028.1 | Last Updated 29 Jun 2010
Article Copyright 2010 by silverazure
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid