Skip to content

Commit bb48870

Browse files
authored
Change some examples from json to jsonc (#649)
* Fix a copy-paste error. * remove extra file * Reformat json examples as jsonc * Remove trailing angle bracket
1 parent 7ee2778 commit bb48870

File tree

5 files changed

+12
-13
lines changed

5 files changed

+12
-13
lines changed

api/python/v2/node.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ client.node.fetch_property_values(node_dcids=["country/USA"], properties="contai
489489
Response:
490490
{: .example-box-title}
491491

492-
```
492+
```jsonc
493493
{
494494
"data": {
495495
"country/USA": {
@@ -528,7 +528,7 @@ Response:
528528
"dcid": "geoId/10",
529529
"name": "Delaware"
530530
},
531-
...
531+
//...
532532
}
533533
}
534534
}
@@ -578,7 +578,7 @@ client.node.fetch_all_classes(all_pages=False)
578578
Response:
579579
{: .example-box-title}
580580

581-
```
581+
```jsonc
582582
{
583583
"data": {
584584
"Class": {
@@ -657,7 +657,7 @@ Response:
657657
"Class"
658658
]
659659
},
660-
....
660+
//...
661661
]
662662
}
663663
}

api/rest/v2/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,11 @@ curl --request GET \
272272

273273
will return something like:
274274

275-
```json
275+
```jsonc
276276
{
277277
"data": {
278278
"geoId/06": {
279-
"arcs": < ... output truncated for brevity ...>
279+
"arcs": // ... output truncated for brevity ...
280280
},
281281
},
282282
"nextToken": "SoME_veRy_L0ng_STrIng"

api/rest/v2/migration.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ $ curl --request GET --url \
570570

571571
{% tab response V1 response %}
572572

573-
```json
573+
```jsonc
574574
{
575575
"values" : [
576576
{
@@ -637,7 +637,7 @@ $ curl --request GET --url \
637637
"dcid" : "wikidataId/Q1195",
638638
"name" : "Meghalaya"
639639
},
640-
<-- truncated -->
640+
// -- truncated --
641641
{
642642
"dcid" : "wikidataId/Q677037",
643643
"name" : "Telangana"
@@ -648,7 +648,7 @@ $ curl --request GET --url \
648648
{% endtab %}
649649
{% tab response V2 response %}
650650

651-
```json
651+
```jsonc
652652
{
653653
"data" : {
654654
"country/IND" : {
@@ -719,7 +719,7 @@ $ curl --request GET --url \
719719
"dcid" : "wikidataId/Q1195",
720720
"name" : "Meghalaya"
721721
},
722-
<-- truncated -->
722+
//-- truncated --
723723
{
724724
"dcid" : "wikidataId/Q677037",
725725
"name" : "Telangana"

api/rest/v2/observation.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ Response:
267267
"AmountOutstanding_Debt_PubliclyGuaranteed_LongTermExternalDebt_LenderCountryCHE": {
268268
"byEntity": {
269269
"country/TGO": {
270-
271270
}
272271
}
273272
},

custom_dc/custom_entities.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ The other fields are explained in the [Data config file specification reference]
167167

168168
Here's an example of the previous hospital data, covering both the entities and the statistical variables (we've left out the remaining 7 variables for brevity):
169169

170-
```json
170+
```jsonc
171171
{
172172
"inputFiles": {
173173
"hospital_entities.csv": {
@@ -213,7 +213,7 @@ Here's an example of the previous hospital data, covering both the entities and
213213
"populationType": "Bed"
214214
}
215215
},
216-
...
216+
//...
217217
},
218218
"sources": {
219219
"HHS Protect Public Data Hub": {

0 commit comments

Comments
 (0)