1.i need print json format like { "numport":1 [ { "Port":1 "value":234 },{ "Port":2 "value":2344 } ]
What you printed is not a valid json string. So cJSON won't be able to create it. You can validate your string here: https://jsonformatter.curiousconcept.com/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.