我有以下字符串,
字符串操作="创建用户"; 字符串公司="公司名称";
但是如何将上面的字符串转换为下面的json字符串并将这个字符串传递给服务器
{"action":"CreateUser","user":{"company":{"solutionname":"","createdon":"","companyguid":"","nextinvoicenumber":"1000","companystatus":"Active","companyname":"","solutioncode":"InvoiceASAP"},"createdon":"","userstatus":"Active","companyguid":"","addressguid":"","guid":"","firstname":"Renuka","lastname":"Shah","email":"ren40@vprex.com","username":"","password":"renuka","cellphone":"","homephone":"","officephone":"","officeextension":"","faxnumber":"","phoneid":"1","sourceid":"1","primarycontact":"Y","permissioncode":"COMPANYADMIN","address":{"addr1":"","addr2":"","addr3":"","addr4":"","addr5":"","city":"","state":"","postalcode":"","country":"","note":""}}}
任何帮助,将不胜感激。