[Tournament] Tree to Json function for JQuery bracket