Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
rapidjson
Commits
ba5e27a0
Commit
ba5e27a0
authored
Jun 30, 2014
by
Milo Yip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update readme.md
parent
8e6da6bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
readme.md
readme.md
+6
-6
No files found.
readme.md
View file @
ba5e27a0
...
...
@@ -37,23 +37,23 @@ Users can build and run the unit tests on their platform/compiler.
## Installation
RapidJSON is a header-only C++ library. Just copy the
`
RapidJSON/include/RapidJSON
`
folder to system or project's include path.
RapidJSON is a header-only C++ library. Just copy the
`
rapidjson/include/rapidjson
`
folder to system or project's include path.
To build the tests and examples:
1.
Obtain
[
premake4
](
http://industriousone.com/premake/download
)
.
2.
Copy premake4 executable to RapidJSON/build (or system path)
3.
Run
`
RapidJSON
/build/premake.bat`
on Windows,
`RapidJSON/build/premake.sh`
on Linux or other platforms
4.
On Windows, build the solution at
`
RapidJSON
/build/vs2008/`
or
`/vs2010/`
5.
On other platforms, run GNU make at
`
RapidJSON
/build/gmake/`
(e.g.,
`make -f test.make config=release32`
,
`make -f example.make config=debug32`
)
6.
On success, the executable are generated at
`
RapidJSON
/bin`
3.
Run
`
rapidjson
/build/premake.bat`
on Windows,
`RapidJSON/build/premake.sh`
on Linux or other platforms
4.
On Windows, build the solution at
`
rapidjson
/build/vs2008/`
or
`/vs2010/`
5.
On other platforms, run GNU make at
`
rapidjson
/build/gmake/`
(e.g.,
`make -f test.make config=release32`
,
`make -f example.make config=debug32`
)
6.
On success, the executable are generated at
`
rapidjson
/bin`
## Usage at a glance
This simple example parses a JSON string into a document (DOM), make a simple modification of the DOM, and finally stringify the DOM to a JSON string.
[
simpledom.cpp
](
example/simpledom/simpledom.cpp
)
```
cpp
// example/simpledom/simpledom.cpp
#include "rapidjson/document.h"
#include "rapidjson/writer.h"
#include "rapidjson/stringbuffer.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment