Convert to JSON in Python vs Javascript

Python:

import json

user = {
    "name": "Victor"
}

json_py = json.dumps(user)

Enter fullscreen mode Exit fullscreen mode

Javascript:

const user = {
    name: "Victor"
}

const jsonJs = JSON.stringify(user);

Enter fullscreen mode Exit fullscreen mode

原文链接:Convert to JSON in Python vs Javascript

© 版权声明
THE END
喜欢就支持一下吧
点赞9 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容