如何将下面的JSON数据转换为application / x-www-form-urlencoded?

问题描述

我想将下面的JSON数据转换为x-www-form-urlencoded格式。如何在JavaScript中做到这一点?还是任何在线转换器?

    stripe_data: {
          "type" : "card","billing_details" : {
              "name" : "sample test","email" : "[email protected]","phone" : "+61 76 253 4125","address" : {
              "state" : "Melborne","country" : "Australia"
              }
          },"card" : {
              "number" : "4242424242424242","cvc" : "242","exp_month" : "01","exp_year" : "22"
          }
        }

我搜索了google,但没有找到针对此类数据(从对象到对象)的任何解决方案。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)