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

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

于 2023-01-25 发布 文件大小:447.37 kB
0 379
下载积分: 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 个回复

  • stm32_bootloader-master
    说明:  stm32_bootloader 单片机bootloader(stm32_bootloader-master)
    2020-08-29 22:38:44下载
    积分:1
  • 51单片机AD采集测量电阻
    带标定电压,1602显示,P1口6通道采集,可以测量0~100欧姆的电阻,经调校,误差在0.6欧姆以内。代码内部有详细的注释,很容易理解,可以直接用最小系统搭出相关电路。源码通过KEIL5编写并编译,芯片为STC12C5A60S2
    2023-06-20 13:25:06下载
    积分:1
  • Example
    lpc2132读写SST39VF400的程序,通过串口发给单片机,由单片机写入FLASH,可以擦除和写入。ADS1.2编译(This is a program for lpc2132 to write SST39VF400.use ads1.2)
    2010-02-03 15:43:08下载
    积分:1
  • test
    VC6连接Redis服务器示例,系统:win32 xp sp3,编译器:VC6,无依赖(VC6 connect Redis server example, the system: win32 xp sp3, compiler: VC6, no reliance)
    2013-10-09 15:20:12下载
    积分:1
  • product promotional website
    2022-06-30 15:30:38下载
    积分:1
  • 对于Windows控制台程序,需要支持的MFC(其他…
    本程序为Windows下的控制台程序,需MFC的支持(否则不能通过编译) * 执行时带一个参数,指定要打开的文件;以每行10个字符(每个中文字符算一个字符), * 最后一行可能不足10个。另外如 , 等字符可能改变打印格式-procedures for the Windows console procedures, the need to support the MFC (otherwise can not compile)* implementation with a parameter specified to open the document; Every trip to 10 characters (Chinese characters each count one character),* last line may be less than ten. Also, as n, t characters such as print format may change
    2022-11-17 01:35:04下载
    积分:1
  • RealTime_Plot
    实时曲线显示类,VC++语言开发,可同时显示4条曲线(用户可自行增加),提供标尺和信息显示栏,背景网格疏密程度可调,可直接产生DLL移植到其他工程中使用。(Real-time curve display category, VC++ Language development, can simultaneously display four curve (users can increase their own), to provide benchmark and information display boards, the extent of the background grid spacing adjustable, can be directly transplanted to generate DLL in other projects使用.)
    2008-07-17 20:31:22下载
    积分:1
  • Svvehicle8i
    汽车8自由度simulink模型,可乙乙进行各种汽车动力学控制及其仿真研究工作 (Automotive 8 degrees of freedom simulink model, B B a variety of vehicle dynamics control and simulation study of)
    2012-07-16 17:29:20下载
    积分:1
  • C#班级管理系统源码(含数据库)
    C#班级管理系统源码(含数据库)
    2020-05-06下载
    积分:1
  • 卡尔曼滤波
    两轮平衡车,卡尔曼滤波算法保证小车平衡运行,已验证(The two wheeled balancing vehicle, Calman filter algorithm ensures the balanced operation of the car, has been verified)
    2018-02-27 09:19:12下载
    积分:1
  • 696518资源总数
  • 106182会员总数
  • 24今日下载