search

Home  >  Q&A  >  body text

Python converts json to lua table

Recently, there is a business that converts json into lua table format and runs it in lua. Because I don’t know lua, I can only use python to convert it. Is there any such library?

{
    "B": {
          "Level": true,
          "ID": 772,
          "tLevel": 2,
          "Type": 1,
            },
}

Convert to this

{["B"]={["Level"]=true,["ID"]=772,["TLevel"]=2,["Type"]=1,}}
伊谢尔伦伊谢尔伦2809 days ago853

reply all(1)I'll reply

  • 为情所困

    为情所困2017-05-18 11:01:21

    http://blog.csdn.net/liangneo...

    reply
    0
  • Cancelreply