add json function and net tool