From 3692956481fee90f6c2628a9b72b239b87534c40 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Mon, 13 Nov 2017 17:01:10 +0100 Subject: [PATCH] Update links to arduinojson.org --- API-Reference.md | 2 +- Avoiding-pitfalls.md | 2 +- Compatibility-issues.md | 2 +- Decoding-JSON.md | 2 +- Encoding-JSON.md | 2 +- FAQ.md | 2 +- Home.md | 19 ------------ Memory-model.md | 2 +- Quick-Start.md | 39 +------------------------ Using-the-library-in-a-CMake-project.md | 2 +- Using-the-library-with-Arduino.md | 2 +- Using-the-library-without-Arduino.md | 2 +- 12 files changed, 11 insertions(+), 67 deletions(-) diff --git a/API-Reference.md b/API-Reference.md index aaa47c2..19e94db 100644 --- a/API-Reference.md +++ b/API-Reference.md @@ -1 +1 @@ -🚚 This page has been moved to https://bblanchon.github.io/ArduinoJson/api/ 🚚 +🚚 This page has been moved to https://arduinojson.org/api/ 🚚 diff --git a/Avoiding-pitfalls.md b/Avoiding-pitfalls.md index a7b1732..7e7760f 100644 --- a/Avoiding-pitfalls.md +++ b/Avoiding-pitfalls.md @@ -1 +1 @@ -🚚 This page has been moved to https://bblanchon.github.io/ArduinoJson/doc/pitfalls/ 🚚 +🚚 This page has been moved to https://arduinojson.org/doc/pitfalls/ 🚚 diff --git a/Compatibility-issues.md b/Compatibility-issues.md index a0bd3aa..1c374e5 100644 --- a/Compatibility-issues.md +++ b/Compatibility-issues.md @@ -1 +1 @@ -🚚 This page has been moved to https://bblanchon.github.io/ArduinoJson/faq/ 🚚 +🚚 This page has been moved to https://arduinojson.org/faq/ 🚚 diff --git a/Decoding-JSON.md b/Decoding-JSON.md index cb72686..f042789 100644 --- a/Decoding-JSON.md +++ b/Decoding-JSON.md @@ -1 +1 @@ -🚚 This page has been moved to https://bblanchon.github.io/ArduinoJson/doc/decoding/ 🚚 +🚚 This page has been moved to https://arduinojson.org/doc/decoding/ 🚚 diff --git a/Encoding-JSON.md b/Encoding-JSON.md index 96d0d7f..678b22d 100644 --- a/Encoding-JSON.md +++ b/Encoding-JSON.md @@ -1 +1 @@ -🚚 This page has been moved to https://bblanchon.github.io/ArduinoJson/doc/encoding/ 🚚 +🚚 This page has been moved to https://arduinojson.org/doc/encoding/ 🚚 diff --git a/FAQ.md b/FAQ.md index c55c0de..36c7f71 100644 --- a/FAQ.md +++ b/FAQ.md @@ -1 +1 @@ -🚚 The FAQ has been moved to https://bblanchon.github.io/ArduinoJson/faq/ 🚚 \ No newline at end of file +🚚 The FAQ has been moved to https://arduinojson.org/faq/ 🚚 \ No newline at end of file diff --git a/Home.md b/Home.md index 2e60210..41b6d1a 100644 --- a/Home.md +++ b/Home.md @@ -1,25 +1,6 @@ :warning: Most of the content of the wiki is now in [arduinojson.org](http://arduinojson.org). -- [[Quick start]] - -#### User guide - -- [Installation](http://arduinojson.org/doc/installation/) -- [Decoding JSON](http://arduinojson.org/doc/decoding/) -- [Encoding JSON](http://arduinojson.org/doc/encoding/) -- [Memory model](http://arduinojson.org/doc/memory/) -- [Avoiding pitfalls](http://arduinojson.org/doc/pitfalls/) -- [API Reference](http://arduinojson.org/api/) - ~~[[Migrating code to the new API]]~~ (obsolete) - -#### Resources - -- [F.A.Q (Frequently Asked Questions) :confused:](http://arduinojson.org/faq/) -- [Examples](http://arduinojson.org/example/) - [[Bag of Tricks]] -- [ArduinoJson Assistant](http://arduinojson.org/assistant/) - -#### Misc - - [[Projects using ArduinoJson]] - [Donations](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=donate%40benoitblanchon%2efr&lc=GB&item_name=Benoit%20Blanchon&item_number=Arduino%20JSON¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted) :beers: diff --git a/Memory-model.md b/Memory-model.md index 9ee4aca..b6636f5 100644 --- a/Memory-model.md +++ b/Memory-model.md @@ -1 +1 @@ -🚚 This page has been moved to https://bblanchon.github.io/ArduinoJson/doc/memory/ 🚚 +🚚 This page has been moved to https://arduinojson.org/doc/memory/ 🚚 diff --git a/Quick-Start.md b/Quick-Start.md index e3c6091..460a756 100644 --- a/Quick-Start.md +++ b/Quick-Start.md @@ -1,38 +1 @@ - #include - -#### Decoding / Parsing - -```c++ -char json[] = "{\"sensor\":\"gps\",\"time\":1351824120,\"data\":[48.756080,2.302038]}"; - -StaticJsonBuffer<200> jsonBuffer; - -JsonObject& root = jsonBuffer.parseObject(json); - -const char* sensor = root["sensor"]; -long time = root["time"]; -double latitude = root["data"][0]; -double longitude = root["data"][1]; -``` - -[See complete guide](https://bblanchon.github.io/ArduinoJson/doc/decoding/) - -#### Encoding / Generating - -```c++ -StaticJsonBuffer<200> jsonBuffer; - -JsonObject& root = jsonBuffer.createObject(); -root["sensor"] = "gps"; -root["time"] = 1351824120; - -JsonArray& data = root.createNestedArray("data"); -data.add(48.756080, 6); // 6 is the number of decimals to print -data.add(2.302038, 6); // if not specified, 2 digits are printed - -root.printTo(Serial); -// This prints: -// {"sensor":"gps","time":1351824120,"data":[48.756080,2.302038]} -``` - -[See complete guide](https://bblanchon.github.io/ArduinoJson/doc/encoding/) \ No newline at end of file +🚚 This page has been moved to https://arduinojson.org/doc/quickstart/ 🚚 diff --git a/Using-the-library-in-a-CMake-project.md b/Using-the-library-in-a-CMake-project.md index 282d1e9..1e0c61e 100644 --- a/Using-the-library-in-a-CMake-project.md +++ b/Using-the-library-in-a-CMake-project.md @@ -1 +1 @@ -🚚 This page has been moved to https://bblanchon.github.io/ArduinoJson/doc/installation/ 🚚 +🚚 This page has been moved to https://arduinojson.org/doc/installation/ 🚚 diff --git a/Using-the-library-with-Arduino.md b/Using-the-library-with-Arduino.md index 282d1e9..1e0c61e 100644 --- a/Using-the-library-with-Arduino.md +++ b/Using-the-library-with-Arduino.md @@ -1 +1 @@ -🚚 This page has been moved to https://bblanchon.github.io/ArduinoJson/doc/installation/ 🚚 +🚚 This page has been moved to https://arduinojson.org/doc/installation/ 🚚 diff --git a/Using-the-library-without-Arduino.md b/Using-the-library-without-Arduino.md index 282d1e9..1e0c61e 100644 --- a/Using-the-library-without-Arduino.md +++ b/Using-the-library-without-Arduino.md @@ -1 +1 @@ -🚚 This page has been moved to https://bblanchon.github.io/ArduinoJson/doc/installation/ 🚚 +🚚 This page has been moved to https://arduinojson.org/doc/installation/ 🚚