Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3343590
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:58:20+00:00 2026-05-18T00:58:20+00:00

I received a JSON file but don’t know how to read it. Is there

  • 0

I received a JSON file but don’t know how to read it. Is there a converter where I can produce a nice CSV file so it can be loaded into MS Excel? I don’t understand JSON, so it would be awesome if someone wrote a script or link me to one that would do the job.

I found something close at http://json.bloople.net but, unfortunately, it’s JSON to HTML.

Edit: jsonformat.com gets even closer, however it’s still not CSV.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T00:58:21+00:00Added an answer on May 18, 2026 at 12:58 am

    I’m not sure what you’re doing, but this will go from JSON to CSV using JavaScript. This is using the open source JSON library, so just download JSON.js into the same folder you saved the code below into, and it will parse the static JSON value in json3 into CSV and prompt you to download/open in Excel.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>JSON to CSV</title>
        <script src="scripts/json.js" type="text/javascript"></script>
        <script type="text/javascript">
        var json3 = { "d": "[{\"Id\":1,\"UserName\":\"Sam Smith\"},{\"Id\":2,\"UserName\":\"Fred Frankly\"},{\"Id\":1,\"UserName\":\"Zachary Zupers\"}]" }
    
        DownloadJSON2CSV(json3.d);
    
        function DownloadJSON2CSV(objArray)
        {
            var array = typeof objArray != 'object' ? JSON.parse(objArray) : objArray;
    
            var str = '';
    
            for (var i = 0; i < array.length; i++) {
                var line = '';
    
                for (var index in array[i]) {
                    line += array[i][index] + ',';
                }
    
                // Here is an example where you would wrap the values in double quotes
                // for (var index in array[i]) {
                //    line += '"' + array[i][index] + '",';
                // }
    
                line.slice(0,line.Length-1); 
    
                str += line + '\r\n';
            }
            window.open( "data:text/csv;charset=utf-8," + escape(str))
        }
    
        </script>
    
    </head>
    <body>
        <h1>This page does nothing....</h1>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get client-side javascript objects saved as a file locally. I'm not
I'm trying to post a JSON object through a POST. I'm trying to do
I am trying to customize a Drupal 6.x module. The original module does not
Based on my php_info() my PHP version is PHP Version 5.2.9 However, for some
I am working with Node.js to build a web socket server that uses mongodb.
I am converting a javascript/php/ajax application to use jQuery to ensure compatibility with browsers
I need to use ajax feature to load an external div element (an external
I've created the following RESTful WCF service, which works just fine when running it
This is the first time I am working for a front-end project that requires
Today I try to compile my first GWT project (using Eclipse). It has default

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.