登录
首页 » C++ » ESJ: 适用于 C++ 的简单JSON

ESJ: 适用于 C++ 的简单JSON

于 2023-01-25 发布 文件大小:447.37 kB
0 759
下载积分: 2 下载次数: 1

代码说明:

翻译 maninwest@Codeforge 作者:Jerry Evans@CodeProject向 C++ 类添加 JSON 序列化ESJ 是一个 JSON 映射器,适用于 C++ 并满足中等编译器的要求 (非 C++11) ,且不依赖第三方库。它是用于跟web和数据库服务互操作的轻量级系统,使用简单。ESJ 可以快速添加到已有代码中,生成强健地格式良好的 JSON 数据。JSON (Javascript Object Notation) 已成为基于 Web 的数据交换的格式选择。  JSON 富于表现力,容易解析和读取。也非常适合 Javascript 语言。除了普遍用于 AJAX (更精确一点,是 AJAJ) 上下文中, JSON也非常适用于基于 Web-socket 的通信。也许,比较不常用的是,代码已在嵌入式环境中部署,极大地简化了针对物联网设备的 Web-socket 数据交换。 附件中的 ZIP 文件包含适用于  Visual Studio (2012) 和 XCode (Clang) 的项目。此代码也在 Github 上托管。使用代码以 JSON 序列化的典范例子开始://----------------------------------------------------------------------------- // Code support required for serialization. class JSONExample { public: // to be JSON"ised std::string text; public: // each class requires a public serialize function void serialize(JS

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 4路AD采集模块0-10V
    51单片机4路AD采集模块,附件带源码.原理图等(51 MCU 4-channel AD acquisition module, accessory with source code, schematic diagram, etc.)
    2020-06-17 04:00:01下载
    积分:1
  • lab_1
    1、 某软件公司大约有30名员工,每名员工有姓名、工号、职务等属性,每年都有员工离职和入职。把所有员工建立一个线性表,建立离职和入职函数,当有员工离职或入职时,修改线性表,并且显示最新的员工名单。 要求:1)顺序表存储;实现顺序表的插入、删除、查找、输出等基本操作;调用基本操作完成。2)链表存储;实现链表的插入、删除、查找、输出等基本操作;调用基本操作完成(1, a software company has about 30 employees, each employee has the name, job number, job and other attributes, every year there are employees leaving and entry. Set up a linear list of all employees, establish a departure and entry function, modify the linear list and show the latest staff list when employees leave or enter the position. Requirements: 1) order table storage; implementation of the order table insertion, deletion, search, output and other basic operations; call the basic operation completed. 2) linked list storage, the realization of the list of insert, delete, search, output and other basic operations; call the basic operation completed)
    2021-04-04 10:19:04下载
    积分:1
  • OLED-显示折线图
    stm32f103c8t6 驱动0.96oled四角屏显示曲线,很好的绘制各种曲线(Stm32f103c8t6 drives 0.96 OLED quadrangular screen display curve, which can draw all kinds of curves well.)
    2020-06-18 12:40:01下载
    积分:1
  • PWM
    这是avr单片机pwm输出程序,是电机控制不可缺少的,也是控制类里面比较重要的程序,好好学习一下吧(This is the avr microcontroller pwm output process, motor control is indispensable, and it is more important to control the class inside the program, learn about it)
    2011-10-03 17:03:05下载
    积分:1
  • TP1_AMO_09_data
    ondeltreete partie 2 projet
    2011-03-02 21:05:02下载
    积分:1
  • aodv
    implementation of AODV in c
    2014-09-05 19:40:47下载
    积分:1
  • packet-filtering-firewall-master
    说明:  应用层包过滤防火墙 一个简单的应用层包过滤防火墙实现 Qt/SQLite/NetFilter 编译过程可使用QtCreator编译,也可使用命令行 sudo qmake && make 来编译。 运行则执行 sudo ./firewall 即可。(Application Layer Packet Filtering Firewall A Simple Application Layer Packet Filter Firewall to Implement Qt/SQLite/NetFilter The compilation process can be compiled using QtCreator or the command line sudo qmake & make. Run sudo. / firewall.)
    2020-06-22 00:00:02下载
    积分:1
  • Pulse width modulation using stm32f4
    本程序采用Stm32F407单片机进行脉宽调制。采用pwm控制风扇转速。我使用了基于定时器的pwm控制,效率更高,速度更快;
    2023-07-16 00:25:03下载
    积分:1
  • 200710102231994230
    优化的G729通信包,自定义按钮、通信包。语音的延迟处理,太多东西值得我们去学习。解压密码vscodes.com(G729-optimized communications package, custom button, communications package. Voice of the delay in processing, too many things worth learning. Unzip password vscodes.com)
    2007-10-21 12:34:37下载
    积分:1
  • BMP
    bmp压缩算法 联合开发网 - pudn.com
    2020-06-16 10:20:01下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载