Git Product home page Git Product logo

myjson's Introduction

JSON库

C++实现简单的Json库,目前实现:

  • 能够解析null、true、false、数字(double)、字符串、数组、对象
  • 仅支持 UTF-8JSON文本,仅支持double存储number
  • 能够添加和删除Json对象
  • 实现Json对象转换成字符串格式化输出
  • 实现FastWriter的非格式化输出
  • 接口使用大部分同Jsoncpp
  • Reader部分采用了单例模式(纯粹是因为想用一下单例)

学习资料来自miloyip大神的GitHub

使用系统及工具

使用系统:

  • CentOS 7

使用工具:

  • vim
  • makefile
  • g++
  • gdb

目前效果图

测试用例

使用用例

内存泄漏检测

最大的收获

  1. 熟悉了gbd调试
  2. 学会了简单的测试单元的编写
  3. 熟悉了C++的Json库
  4. 大概了解了代码重构
  5. 学会了内存泄漏检测工具
  6. 实际写了一下单例模式

myjson's People

Contributors

jo-qzy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.