- I am trying to import JSON file into
Sample
variable but only first few characters are displayed fromSample
variable. - The sample.json is 20,00,000 characters, When i print
Sample
variable on Console only first 3,756 characters are printed.Is there any limitations on the characters that can be printed through console.log? Complete data persists in
Sample variable
, I verified it by searching for strings that occur at the end ofsample.json
filevar Sample = require('./sample.json'); export default class proj extends Component { constructor(props) { super(props); this.state = { locations: [], }; } loadOnEvent() { console.log(Sample); //this.state={ locations : Sample }; } }
Is there any other way to print data in Sample
variable.