Skip to content

Commit 2a65d94

Browse files
committed
Improve README
1 parent 39a6f8b commit 2a65d94

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ std::string or_str = smp_val["key1"].to_or<std::string>("default"); // returns "
221221
```
222222

223223
Conversion follows precise rules and a fixed testing order.
224-
For details, refer to the [GitHub Pages documentation](https://v-craft.github.io/vct-tools-json/) or source code comments.
224+
For details, refer to the [GitHub Pages documentation](https://mysvac.github.io/cpp-jsonlib/) or source code comments.
225225

226226
The library defines three concepts to determine whether a type can be converted
227227
(types that meet none of them cannot use `to`/`move` and will fail to compile):
@@ -460,7 +460,7 @@ std::println("");
460460
v_data2["data"]["id"] = 8848;
461461
v_data2["data"]["name"] = "Mount Everest";
462462
v_data2["data"]["active"] = true;
463-
v_data2["data_list"].arr().push_back(v_data2["data"]);
463+
v_data2["data_list"].push_back(v_data2["data"]);
464464
v_data2["name"] = "name_name";
465465
MyData2 d_data2{v_data2};
466466

@@ -708,7 +708,7 @@ smp_val["obj"].at("nested_k").is_nul(); // [] 和 at 可以混合使用
708708
数组和映射类型可能需要频繁操作,因此我们提供了一系列辅助函数。这些函数返回一个布尔值表示操作是否成功,不会抛出异常。
709709

710710
| 函数名 | 返回值 | 说明 |
711-
--------------------------------------------------------------
711+
|--------|-------|------|
712712
| `size()` | `size_t` | 数组或映射则返回元素数,否则返回 `0` |
713713
| `empty()` | `bool` | 返回数组或映射是否为空,其他类型返回 `true` |
714714
| `contains(key)` | `bool` | 判断是否含某个键,非映射返回 `false` |
@@ -741,7 +741,7 @@ if(opt_str) std::cout << *opt_str << std::endl; // 如果转换成功,输出
741741
std::string or_str = smp_val["key1"].to_or<std::string>("default"); // 如果转换失败,返回 "default"
742742
```
743743

744-
转换具有非常准确的规则与测试顺序,详细内容请参考 [github-pages](https://v-craft.github.io/vct-tools-json/) 文档,或源码注释。
744+
转换具有非常准确的规则与测试顺序,详细内容请参考 [github-pages](https://mysvac.github.io/cpp-jsonlib/) 文档,或源码注释。
745745

746746
本库提供了三个概念用于查询类型是否可能被转换:(都不满足的无法使用`to/move`模板,无法通过编译)
747747

@@ -964,7 +964,7 @@ std::println("");
964964
v_data2["data"]["id"] = 8848;
965965
v_data2["data"]["name"] = "Mount Everest";
966966
v_data2["data"]["active"] = true;
967-
v_data2["data_list"].arr().push_back( v_data2["data"] );
967+
v_data2["data_list"].push_back( v_data2["data"] );
968968
v_data2["name"] = "name_name";
969969
MyData2 d_data2{ v_data2 };
970970
M_EXPECT_TRUE( d_data2.my_data.id == 8848 ); // true

docs/zh/Json/destructor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
~Json() noexcept = default;
55
```
66

7-
## 异常
7+
#### Exceptions
88

9-
无异常。
9+
None
1010

1111
## Version
1212

docs/zh/Json/operator_assign.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ requires constructible<Json, std::remove_cvref_t<T>>
1313
Json& operator=(T&& other) noexcept;
1414
```
1515

16-
赋值运算符重载。
1716

1817
## Complexity
1918

0 commit comments

Comments
 (0)