I am trying to display my JSON data in my HTML UI, The JSON Object is returning but I am not able to display the object.
And here is my JSON object structure:

Here is my JS File:
$(document).ready(function() {
console.log("ready!");
// on form submission ...
$('form').on('submit', function() {
console.log("the form has beeen submitted");
// grab values
valueOne = $('input[name="perfid"]').val();
valueTwo = $('input[name="hostname"]').val();
valueThree = $('input[name="iteration"]').val();
console.log(valueOne)
console.log(valueTwo)
console.log(valueThree)
$.ajax({
type: "POST",
url: "/",
datatype:'json',
data : { 'first': valueOne,'second': valueTwo,'third': valueThree},
success: function(result) {
$('#result').html(result.sectoutput.summarystats.Avg.Exempt)
},
error: function(error) {
console.log(error)
}
});
});
});
I get nothing in my result div.
EDIT:
Here is my json.stringify(result) output on my UI:

result? Can you show us ? May beJSON.stringify(result)resultargument being passed in ajax success callback....datatypetodataTypein your AJAX call.$('#result').html(JSON.stringify(result))