From 7fe6b15b2316021b0c42d52d9d87c42d5e9f3d2a Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 9 Oct 2018 23:03:07 +0200 Subject: [PATCH] [SAMPLE] update new URI --- doc/read.md | 2 +- sample/read.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/read.md b/doc/read.md index 0d6b59d..f0a7326 100644 --- a/doc/read.md +++ b/doc/read.md @@ -21,7 +21,7 @@ File to read: "read.json" Reading a file is done like this: @snippet read.cpp ejson_sample_read_file -The file naming is manage by @ref etk::FSNode that provide "DATA:" start string for internal application asset. You can use external path like "./plop/file.json" too. +The file naming is manage by @ref etk::FSNode that provide "DATA:///" start string for internal application asset. You can use external path like "./plop/file.json" too. Read an JSON Stream {#ejson_tutorial_read_stream} diff --git a/sample/read.cpp b/sample/read.cpp index f6bf3c1..7efdbb3 100644 --- a/sample/read.cpp +++ b/sample/read.cpp @@ -16,7 +16,7 @@ static void readFromFile() { ejson::Document doc; //! [ejson_sample_declare_doc] //! [ejson_sample_read_file] - bool retParse = doc.load("DATA:read.json"); + bool retParse = doc.load("DATA:///read.json"); //! [ejson_sample_read_file] TEST_INFO("parse ret = " << retParse); TEST_INFO("Debug display of the tree:"); @@ -76,7 +76,7 @@ static void readFromString2() { static void readFull() { ejson::Document doc; TEST_INFO("parse"); - bool retParse = doc.load("DATA:read.json"); + bool retParse = doc.load("DATA:///read.json"); TEST_INFO("parse ret = " << retParse); TEST_INFO("Debug display of the tree:"); doc.display();