Family tree - Create JSON file

Dear Sir/Madam

I am trying family tree code from github, pawnesh familytree


Working code:

family tree is made online …absolutely fine or members can be added online

However after making the tree

when I tried to save data (in JSON)

by clicking button send data as shown in this image

nothing is saved

Code for button!

  1. <input type="button" id="sendData" value="send data" onclick="$.send_Family({url: 'save_family.php'})"/>


Code for save_family.php


  1. <?php
  2. tree = (isset(_POST[‘tree’]) AND !empty(_POST['tree']))?_POST[‘tree’]:"";
  3. $tree = json_decode($tree, true);
  4. print_r($tree);

but nothing happens.

I believe a JSON file is generated.

Pls help is the code wrong or JSON ode is saved at some other location not known to me