json based menu tree