add json swift , and swift function.