- I am trying to import JSON file into
Samplevariable but only first few characters are displayed fromSamplevariable. - The sample.json is 20,00,000 characters, When i print
Samplevariable 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.jsonfilevar 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.