added FromJSON and ToJSON instance implementations for RoseTree