
序列化的使用
君莫vv
这个作者很懒,什么都没留下…
展开
-
jsoncpp的使用(组装和解析报文)
安装sudo apt-get install libjsoncpp-dev使用原创 2022-02-05 20:01:33 · 786 阅读 · 0 评论 -
cJSON的使用(通过解析头文件和官方示例)
先列举一下头文件和官方示例,在官方示例中标记常用的头文件包涵的函数cJSON.h/* Copyright (c) 2009-2017 Dave Gamble and cJSON contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Softwar原创 2021-12-09 23:23:38 · 1670 阅读 · 0 评论 -
json-c序列化的使用
json是什么及json的一些实例json 是一种轻量级的数据交换格式。易于人阅读和编写。同时也易于机器的解析和生成。json的实例是键值对的形式,可以类比于c++的map{"name":"Jack","sex":"man"} {"name":"Jack","age":18,"address":{"country":"china","zip-code":"10000"}} //数字可以不加双引号 {"a":1,"b":[1,2,3]} //数组类型json-c库API的使用...原创 2021-11-23 00:45:51 · 1711 阅读 · 0 评论