title: Is there any method to update a json object and print it as json object in a div using jquery
body: <p>I have updated my jSon object using the code </p>
  
  <pre><code>&lt;script type="text/javascript" &gt;
              jQuery(document).ready(function($){
                  var lessonId = "3423671";
                  $.getJSON('data.json', function(json) {             
                      $.each(json, function(i, data) {
                          $.each(this.courseStarted[0].courseDetails[0].lessonDetails, function(){                            
                              if(this.lessonId == lessonId){                              
                                  this.quiz = "This row updated";                             
                              }
                          });
                      });
                  });
  
              });
          &lt;/script&gt;
  </code></pre>
  
  <p>Here i am updating my <code>json</code> object inside the if condition. Is there any method to get me the new updated <code>json</code> object to print into a html div tag as text in the <code>json format</code>.</p>