I have the following code for getting json data:
$.getJSON( \"assessments\", function( assessments ) { console.log(assessments); });
Stringify the JSON with indentation like so :
$.getJSON( "assessments", function( assessments ) { console.log(JSON.stringify(assessments, undefined, 2)) });
JSON.stringify(value[, replacer [, space]]) where space is the indent. MDN
JSON.stringify(value[, replacer [, space]])
try with
console.log(JSON.stringify(assessments));