I can get JSON tree from the head of any branch but how to get tree from any commit? Maybe exists some hacky solution?