Moved method to static one to avoid Json recursion.