mirror of
https://github.com/openharmony/third_party_jsoncpp.git
synced 2026-07-21 08:15:27 -04:00
@@ -1,5 +1,4 @@
|
||||
#include "json/json.h"
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
/** \brief Write a Value object to a string.
|
||||
* Example Usage:
|
||||
@@ -16,7 +15,7 @@
|
||||
int main() {
|
||||
Json::Value root;
|
||||
Json::Value data;
|
||||
JSONCPP_CONST bool shouldUseOldWay = false;
|
||||
constexpr bool shouldUseOldWay = false;
|
||||
root["action"] = "run";
|
||||
data["number"] = 1;
|
||||
root["data"] = data;
|
||||
|
||||
Reference in New Issue
Block a user