Aftwer AJAX success load decoded data from temp file

Aftwer AJAX success load decoded data from temp file

Dear Sir/Madam

Following data I am getting as out of a a function
(as a result of tree data output)

tree=%7B%22li0%22%3A%7B%22a0%22%3A%7B%22name%22%3A%22Main+MAN%22%2C%22age%22%3A%2298%22%2C%22gender%22%3A%22Male%22%2C%22pic%22%3A%22images%2Fprofile.png%22%7D%2C%22a1%22%3A%7B%22name%22%3A%22Wife+2%22%2C%22age%22%3A%2255%22%2C%22gender%22%3A%22Female%22%2C%22relation%22%3A%22Spouse%22%2C%22pic%22%3A%22images%2Fprofile-f.png%22%7D%2C%22a2%22%3A%7B%22name%22%3A%22Main+Wife%22%2C%22age%22%3A%2291%22%2C%22gender%22%3A%22Female%22%2C%22relation%22%3A%22Spouse%22%2C%22pic%22%3A%22images%2Fprofile-f.png%22%7D%2C%22ul%22%3A%7B%22li0%22%3A%7B%22a0%22%3A%7B%22name%22%3A%22Son1%22%2C%22age%22%3A%2278%22%2C%22gender%22%3A%22Male%22%2C%22relation%22%3A%22Child%22%2C%22pic%22%3A%22images%2Fprofile.png%22%7D%2C%22a1%22%3A%7B%22name%22%3A%22wife+son+1%22%2C%22age%22%3A%2270%22%2C%22gender%22%3A%22Female%22%2C%22relation%22%3A%22Spouse%22%2C%22pic%22%3A%22images%2Fprofile-f.png%22%7D%7D%2C%22li1%22%3A%7B%22a0%22%3A%7B%22name%22%3A%22Daughter+1%22%2C%22age%22%3A%2268%22%2C%22gender%22%3A%22Female%22%2C%22relation%22%3A%22Child%22%2C%22pic%22%3A%22images%2Fprofile-f.png%22%7D%2C%22a1%22%3A%7B%22name%22%3A%22Daughter+husband+1%22%2C%22age%22%3A%2275%22%2C%22gender%22%3A%22Male%22%2C%22relation%22%3A%22Spouse%22%2C%22pic%22%3A%22images%2Fprofile.png%22%7D%2C%22ul%22%3A%7B%22li0%22%3A%7B%22a0%22%3A%7B%22name%22%3A%22d1-son1%22%2C%22age%22%3A%2266%22%2C%22gender%22%3A%22Male%22%2C%22relation%22%3A%22Child%22%2C%22pic%22%3A%22images%2Fprofile.png%22%7D%7D%2C%22li1%22%3A%7B%22a0%22%3A%7B%22name%22%3A%22daughter+1%3Edaughter%22%2C%22age%22%3A%2267%22%2C%22gender%22%3A%22Female%22%2C%22relation%22%3A%22Child%22%2C%22pic%22%3A%22images%2Fprofile-f.png%22%7D%7D%7D%7D%7D%7D%7D

Following script allows me to load it to another div
id=#pk-family-treexx

Script is  given below

  1. <script>
  2. $.ajax({
  3. url : "tmp/org.json",
  4. dataType: "text",
  5. success : function (data) {
  6. $("#pk-family-treexx").html(data) ;
  7. }
  8. });
  9.   
  10. </script>
How can i decode it and use it