Skip to content

Commit 750d53f

Browse files
committed
Update URLs to point to https://arduinojson.org/v7/`
1 parent 7bd2ea1 commit 750d53f

38 files changed

+207
-206
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Before opening a bug report, please use the ArduinoJson Troubleshooter as it may
1414
A clear and concise description of what the bug is.
1515

1616
**Troubleshooter report**
17-
Here is the report generated by the [ArduinoJson Troubleshooter](https://arduinojson.org/v6/troubleshooter/):
17+
Here is the report generated by the [ArduinoJson Troubleshooter](https://arduinojson.org/v7/troubleshooter/):
1818
[Paste the report here]
1919

2020
**Environment**

.github/ISSUE_TEMPLATE/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
blank_issues_enabled: true
22
contact_links:
33
- name: 👨‍🏫 ArduinoJson Assistant
4-
url: https://arduinojson.org/v6/assistant/
4+
url: https://arduinojson.org/v7/assistant/
55
about: An online tool that computes memory requirements and generates scaffolding code for your project.
66
- name: 👨‍⚕️ ArduinoJson Troubleshooter
7-
url: https://arduinojson.org/v6/troubleshooter/
7+
url: https://arduinojson.org/v7/troubleshooter/
88
about: An online tool that helps you diagnose the most common issues with ArduinoJson.

.github/ISSUE_TEMPLATE/help.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ A clear and concise description of what you're trying to do.
1515
You don't need to explain every aspect of your project: focus on the problem you're having.
1616

1717
**Troubleshooter report**
18-
Here is the report generated by the [ArduinoJson Troubleshooter](https://arduinojson.org/v6/troubleshooter/):
18+
Here is the report generated by the [ArduinoJson Troubleshooter](https://arduinojson.org/v7/troubleshooter/):
1919
[Paste the report here]
2020

2121
**Environment**

README.md

+25-25
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,28 @@ ArduinoJson is a C++ JSON library for Arduino and IoT (Internet Of Things).
1515

1616
## Features
1717

18-
* [JSON deserialization](https://arduinojson.org/v6/api/json/deserializejson/)
19-
* [Optionally decodes UTF-16 escape sequences to UTF-8](https://arduinojson.org/v6/api/config/decode_unicode/)
20-
* [Optionally supports comments in the input](https://arduinojson.org/v6/api/config/enable_comments/)
21-
* [Optionally filters the input to keep only desired values](https://arduinojson.org/v6/api/json/deserializejson/#filtering)
18+
* [JSON deserialization](https://arduinojson.org/v7/api/json/deserializejson/)
19+
* [Optionally decodes UTF-16 escape sequences to UTF-8](https://arduinojson.org/v7/api/config/decode_unicode/)
20+
* [Optionally supports comments in the input](https://arduinojson.org/v7/api/config/enable_comments/)
21+
* [Optionally filters the input to keep only desired values](https://arduinojson.org/v7/api/json/deserializejson/#filtering)
2222
* Supports single quotes as a string delimiter
2323
* Compatible with [NDJSON](http://ndjson.org/) and [JSON Lines](https://jsonlines.org/)
24-
* [JSON serialization](https://arduinojson.org/v6/api/json/serializejson/)
25-
* [Can write to a buffer or a stream](https://arduinojson.org/v6/api/json/serializejson/)
26-
* [Optionally indents the document (prettified JSON)](https://arduinojson.org/v6/api/json/serializejsonpretty/)
27-
* [MessagePack serialization](https://arduinojson.org/v6/api/msgpack/serializemsgpack/)
28-
* [MessagePack deserialization](https://arduinojson.org/v6/api/msgpack/deserializemsgpack/)
24+
* [JSON serialization](https://arduinojson.org/v7/api/json/serializejson/)
25+
* [Can write to a buffer or a stream](https://arduinojson.org/v7/api/json/serializejson/)
26+
* [Optionally indents the document (prettified JSON)](https://arduinojson.org/v7/api/json/serializejsonpretty/)
27+
* [MessagePack serialization](https://arduinojson.org/v7/api/msgpack/serializemsgpack/)
28+
* [MessagePack deserialization](https://arduinojson.org/v7/api/msgpack/deserializemsgpack/)
2929
* Efficient
3030
* [Twice smaller than the "official" Arduino_JSON library](https://arduinojson.org/2019/11/19/arduinojson-vs-arduino_json/)
3131
* [Almost 10% faster than the "official" Arduino_JSON library](https://arduinojson.org/2019/11/19/arduinojson-vs-arduino_json/)
3232
* [Consumes roughly 10% less RAM than the "official" Arduino_JSON library](https://arduinojson.org/2019/11/19/arduinojson-vs-arduino_json/)
3333
* [Deduplicates strings](https://arduinojson.org/news/2020/08/01/version-6-16-0/)
3434
* Versatile
35-
* Supports [custom allocators (to use external RAM chip, for example)](https://arduinojson.org/v6/how-to/use-external-ram-on-esp32/)
36-
* Supports [`String`](https://arduinojson.org/v6/api/config/enable_arduino_string/), [`std::string`](https://arduinojson.org/v6/api/config/enable_std_string/), and [`std::string_view`](https://arduinojson.org/v6/api/config/enable_string_view/)
37-
* Supports [`Stream`](https://arduinojson.org/v6/api/config/enable_arduino_stream/) and [`std::istream`/`std::ostream`](https://arduinojson.org/v6/api/config/enable_std_stream/)
38-
* Supports [Flash strings](https://arduinojson.org/v6/api/config/enable_progmem/)
39-
* Supports [custom readers](https://arduinojson.org/v6/api/json/deserializejson/#custom-reader) and [custom writers](https://arduinojson.org/v6/api/json/serializejson/#custom-writer)
35+
* Supports [custom allocators (to use external RAM chip, for example)](https://arduinojson.org/v7/how-to/use-external-ram-on-esp32/)
36+
* Supports [`String`](https://arduinojson.org/v7/api/config/enable_arduino_string/), [`std::string`](https://arduinojson.org/v7/api/config/enable_std_string/), and [`std::string_view`](https://arduinojson.org/v7/api/config/enable_string_view/)
37+
* Supports [`Stream`](https://arduinojson.org/v7/api/config/enable_arduino_stream/) and [`std::istream`/`std::ostream`](https://arduinojson.org/v7/api/config/enable_std_stream/)
38+
* Supports [Flash strings](https://arduinojson.org/v7/api/config/enable_progmem/)
39+
* Supports [custom readers](https://arduinojson.org/v7/api/json/deserializejson/#custom-reader) and [custom writers](https://arduinojson.org/v7/api/json/serializejson/#custom-writer)
4040
* Supports [custom converters](https://arduinojson.org/news/2021/05/04/version-6-18-0/)
4141
* Portable
4242
* Usable on any C++ project (not limited to Arduino)
@@ -66,15 +66,15 @@ ArduinoJson is a C++ JSON library for Arduino and IoT (Internet Of Things).
6666
* [Visual Micro](http://www.visualmicro.com/)
6767
* [Visual Studio](https://www.visualstudio.com/)
6868
* [Even works with online compilers like wandbox.org](https://wandbox.org/permlink/RlZSKy17DjJ6HcdN)
69-
* [CMake friendly](https://arduinojson.org/v6/how-to/use-arduinojson-with-cmake/)
69+
* [CMake friendly](https://arduinojson.org/v7/how-to/use-arduinojson-with-cmake/)
7070
* Well designed
71-
* [Elegant API](http://arduinojson.org/v6/example/)
71+
* [Elegant API](http://arduinojson.org/v7/example/)
7272
* [Thread-safe](https://en.wikipedia.org/wiki/Thread_safety)
7373
* Self-contained (no external dependency)
7474
* `const` friendly
75-
* [`for` friendly](https://arduinojson.org/v6/api/jsonobject/begin_end/)
75+
* [`for` friendly](https://arduinojson.org/v7/api/jsonobject/begin_end/)
7676
* [TMP friendly](https://en.wikipedia.org/wiki/Template_metaprogramming)
77-
* Handles [integer overflows](https://arduinojson.org/v6/api/jsonvariant/as/#integer-overflows)
77+
* Handles [integer overflows](https://arduinojson.org/v7/api/jsonvariant/as/#integer-overflows)
7878
* Well tested
7979
* [Unit test coverage close to 100%](https://coveralls.io/github/bblanchon/ArduinoJson?branch=7.x)
8080
* Continuously tested on
@@ -84,11 +84,11 @@ ArduinoJson is a C++ JSON library for Arduino and IoT (Internet Of Things).
8484
* [Continuously fuzzed with Google OSS Fuzz](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:arduinojson)
8585
* Passes all default checks of [clang-tidy](https://releases.llvm.org/10.0.0/tools/clang/tools/extra/docs/clang-tidy/)
8686
* Well documented
87-
* [Tutorials](https://arduinojson.org/v6/doc/deserialization/)
88-
* [Examples](https://arduinojson.org/v6/example/)
89-
* [How-tos](https://arduinojson.org/v6/example/)
90-
* [FAQ](https://arduinojson.org/v6/faq/)
91-
* [Troubleshooter](https://arduinojson.org/v6/troubleshooter/)
87+
* [Tutorials](https://arduinojson.org/v7/doc/deserialization/)
88+
* [Examples](https://arduinojson.org/v7/example/)
89+
* [How-tos](https://arduinojson.org/v7/example/)
90+
* [FAQ](https://arduinojson.org/v7/faq/)
91+
* [Troubleshooter](https://arduinojson.org/v7/troubleshooter/)
9292
* [Book](https://arduinojson.org/book/)
9393
* [Changelog](CHANGELOG.md)
9494
* Vibrant user community
@@ -114,7 +114,7 @@ double latitude = doc["data"][0];
114114
double longitude = doc["data"][1];
115115
```
116116
117-
See the [tutorial on arduinojson.org](https://arduinojson.org/v6/doc/deserialization/)
117+
See the [tutorial on arduinojson.org](https://arduinojson.org/v7/doc/deserialization/)
118118
119119
### Serialization
120120
@@ -133,7 +133,7 @@ serializeJson(doc, Serial);
133133
// {"sensor":"gps","time":1351824120,"data":[48.756080,2.302038]}
134134
```
135135

136-
See the [tutorial on arduinojson.org](https://arduinojson.org/v6/doc/serialization/)
136+
See the [tutorial on arduinojson.org](https://arduinojson.org/v7/doc/serialization/)
137137

138138
## Sponsors
139139

examples/JsonConfigFile/JsonConfigFile.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// * CLK <-> pin 13
1818
// * CS <-> pin 4
1919
//
20-
// https://arduinojson.org/v6/example/config/
20+
// https://arduinojson.org/v7/example/config/
2121

2222
#include <ArduinoJson.h>
2323
#include <SD.h>
@@ -136,7 +136,7 @@ void loop() {
136136
// ------------------
137137
//
138138
// File is an unbuffered stream, which is not optimal for ArduinoJson.
139-
// See: https://arduinojson.org/v6/how-to/improve-speed/
139+
// See: https://arduinojson.org/v7/how-to/improve-speed/
140140

141141
// See also
142142
// --------

examples/JsonFilterExample/JsonFilterExample.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//
55
// This example shows how to use DeserializationOption::Filter
66
//
7-
// https://arduinojson.org/v6/example/filter/
7+
// https://arduinojson.org/v7/example/filter/
88

99
#include <ArduinoJson.h>
1010

examples/JsonGeneratorExample/JsonGeneratorExample.ino

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//
55
// This example shows how to generate a JSON document with ArduinoJson.
66
//
7-
// https://arduinojson.org/v6/example/generator/
7+
// https://arduinojson.org/v7/example/generator/
88

99
#include <ArduinoJson.h>
1010

@@ -21,20 +21,20 @@ void setup() {
2121
doc["sensor"] = "gps";
2222
doc["time"] = 1351824120;
2323

24-
// Add an array.
24+
// Add an array
2525
JsonArray data = doc["data"].to<JsonArray>();
2626
data.add(48.756080);
2727
data.add(2.302038);
2828

29-
// Generate the minified JSON and send it to the Serial port.
29+
// Generate the minified JSON and send it to the Serial port
3030
serializeJson(doc, Serial);
3131
// The above line prints:
3232
// {"sensor":"gps","time":1351824120,"data":[48.756080,2.302038]}
3333

3434
// Start a new line
3535
Serial.println();
3636

37-
// Generate the prettified JSON and send it to the Serial port.
37+
// Generate the prettified JSON and send it to the Serial port
3838
serializeJsonPretty(doc, Serial);
3939
// The above line prints:
4040
// {

examples/JsonHttpClient/JsonHttpClient.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// ]
1717
// }
1818
//
19-
// https://arduinojson.org/v6/example/http-client/
19+
// https://arduinojson.org/v7/example/http-client/
2020

2121
#include <ArduinoJson.h>
2222
#include <Ethernet.h>
@@ -108,7 +108,7 @@ void loop() {
108108
// ------------------
109109
//
110110
// EthernetClient is an unbuffered stream, which is not optimal for ArduinoJson.
111-
// See: https://arduinojson.org/v6/how-to/improve-speed/
111+
// See: https://arduinojson.org/v7/how-to/improve-speed/
112112

113113
// See also
114114
// --------

examples/JsonParserExample/JsonParserExample.ino

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//
55
// This example shows how to deserialize a JSON document with ArduinoJson.
66
//
7-
// https://arduinojson.org/v6/example/parser/
7+
// https://arduinojson.org/v7/example/parser/
88

99
#include <ArduinoJson.h>
1010

@@ -24,14 +24,14 @@ void setup() {
2424
// Deserialize the JSON document
2525
DeserializationError error = deserializeJson(doc, json);
2626

27-
// Test if parsing succeeds.
27+
// Test if parsing succeeds
2828
if (error) {
2929
Serial.print(F("deserializeJson() failed: "));
3030
Serial.println(error.f_str());
3131
return;
3232
}
3333

34-
// Fetch values.
34+
// Fetch the values
3535
//
3636
// Most of the time, you can rely on the implicit casts.
3737
// In other case, you can do doc["time"].as<long>();
@@ -40,7 +40,7 @@ void setup() {
4040
double latitude = doc["data"][0];
4141
double longitude = doc["data"][1];
4242

43-
// Print values.
43+
// Print the values
4444
Serial.println(sensor);
4545
Serial.println(time);
4646
Serial.println(latitude, 6);

examples/JsonServer/JsonServer.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// "digital": [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0]
1414
// }
1515
//
16-
// https://arduinojson.org/v6/example/http-server/
16+
// https://arduinojson.org/v7/example/http-server/
1717

1818
#include <ArduinoJson.h>
1919
#include <Ethernet.h>
@@ -102,7 +102,7 @@ void loop() {
102102
// ------------------
103103
//
104104
// EthernetClient is an unbuffered stream, which is not optimal for ArduinoJson.
105-
// See: https://arduinojson.org/v6/how-to/improve-speed/
105+
// See: https://arduinojson.org/v7/how-to/improve-speed/
106106

107107
// See also
108108
// --------

examples/JsonUdpBeacon/JsonUdpBeacon.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// $ ncat -ulp 8888
1818
// See https://nmap.org/ncat/
1919
//
20-
// https://arduinojson.org/v6/example/udp-beacon/
20+
// https://arduinojson.org/v7/example/udp-beacon/
2121

2222
#include <ArduinoJson.h>
2323
#include <Ethernet.h>
@@ -90,7 +90,7 @@ void loop() {
9090
// ------------------
9191
//
9292
// EthernetUDP is an unbuffered stream, which is not optimal for ArduinoJson.
93-
// See: https://arduinojson.org/v6/how-to/improve-speed/
93+
// See: https://arduinojson.org/v7/how-to/improve-speed/
9494

9595
// See also
9696
// --------

examples/MsgPackParser/MsgPackParser.ino

+6-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// This example shows how to deserialize a MessagePack document with
66
// ArduinoJson.
77
//
8-
// https://arduinojson.org/v6/example/msgpack-parser/
8+
// https://arduinojson.org/v7/example/msgpack-parser/
99

1010
#include <ArduinoJson.h>
1111

@@ -18,7 +18,7 @@ void setup() {
1818
// Allocate the JSON document
1919
JsonDocument doc;
2020

21-
// MessagePack input string.
21+
// The MessagePack input string
2222
uint8_t input[] = {131, 166, 115, 101, 110, 115, 111, 114, 163, 103, 112, 115,
2323
164, 116, 105, 109, 101, 206, 80, 147, 50, 248, 164, 100,
2424
97, 116, 97, 146, 203, 64, 72, 96, 199, 58, 188, 148,
@@ -30,16 +30,17 @@ void setup() {
3030
// "data": [48.75608, 2.302038]
3131
// }
3232

33+
// Parse the input
3334
DeserializationError error = deserializeMsgPack(doc, input);
3435

35-
// Test if parsing succeeded.
36+
// Test if parsing succeeded
3637
if (error) {
3738
Serial.print("deserializeMsgPack() failed: ");
3839
Serial.println(error.f_str());
3940
return;
4041
}
4142

42-
// Fetch values.
43+
// Fetch the values
4344
//
4445
// Most of the time, you can rely on the implicit casts.
4546
// In other case, you can do doc["time"].as<long>();
@@ -48,7 +49,7 @@ void setup() {
4849
double latitude = doc["data"][0];
4950
double longitude = doc["data"][1];
5051

51-
// Print values.
52+
// Print the values
5253
Serial.println(sensor);
5354
Serial.println(time);
5455
Serial.println(latitude, 6);

examples/ProgmemExample/ProgmemExample.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// JsonDocument. Prefer plain old char*, as they are more efficient in term of
1010
// code size, speed, and memory usage.
1111
//
12-
// https://arduinojson.org/v6/example/progmem/
12+
// https://arduinojson.org/v7/example/progmem/
1313

1414
#include <ArduinoJson.h>
1515

examples/StringExample/StringExample.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// JsonDocument. Prefer plain old char[], as they are more efficient in term of
99
// code size, speed, and memory usage.
1010
//
11-
// https://arduinojson.org/v6/example/string/
11+
// https://arduinojson.org/v7/example/string/
1212

1313
#include <ArduinoJson.h>
1414

extras/scripts/get-release-page.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ARDUINOJSON_H="$3"
88

99
cat << END
1010
---
11-
branch: v6
11+
branch: v7
1212
version: $VERSION
1313
date: '$(date +'%Y-%m-%d')'
1414
$(extras/scripts/wandbox/publish.sh "$ARDUINOJSON_H")

src/ArduinoJson/Array/ElementProxy.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
ARDUINOJSON_BEGIN_PRIVATE_NAMESPACE
1010

1111
// A proxy class to get or set an element of an array.
12-
// https://arduinojson.org/v6/api/jsonarray/subscript/
12+
// https://arduinojson.org/v7/api/jsonarray/subscript/
1313
template <typename TUpstream>
1414
class ElementProxy : public VariantRefBase<ElementProxy<TUpstream>>,
1515
public VariantOperators<ElementProxy<TUpstream>> {

0 commit comments

Comments
 (0)