1 Replies - 274 Views - Last Post: 03 August 2015 - 07:04 AM

#1 NeelJava   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 27-April 15

How do you read data from a JSON file using cheerio?

Posted 03 August 2015 - 07:00 AM

How do you read data from a JSON file using cheerio? Say, I have a JSON in the following format

[ { CATA: '',
    CATB: '',
    CATC: '',
    CATD: '',
    CATE: '',
    CATF: '' },
  { CATA: '',
    CATB: '',
    CATC: '',
    CATD: '',
    CATE: '',
    CATF: '' },
 { CATA: '',
    CATB: '',
    CATC: '',
    CATD: '',
    CATE: '',
    CATF: '' }
 ]


Traditionally using JQuery we have something like

$.each(data, function (key, val) {
  $.each(val, function (innerKey, innerValue) {
    
  
    });
  });


But checking the cheerio site seems it doesn't support $.each()

Is This A Good Question/Topic? 0
  • +

Replies To: How do you read data from a JSON file using cheerio?

#2 macosxnerd101   User is online

  • Games, Graphs, and Auctions
  • member icon




Reputation: 12324
  • View blog
  • Posts: 45,424
  • Joined: 27-December 08

Re: How do you read data from a JSON file using cheerio?

Posted 03 August 2015 - 07:04 AM

Please do not duplicate post.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1