Skip to content

Commit eda3ad5

Browse files
committed
updated catechism json, added changelog
1 parent 22f342f commit eda3ad5

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# [v2.0.0]()
2+
3+
---
4+
## Updates
5+
* Structure of Catechism of the Catholic Church JSON.
6+
7+
# [v1.0.0]()
8+
9+
---
10+
## Adds
11+
* Catechism of the Catholic Church in JSON format
12+
* The Canon Law in JSON format
13+
* General Instruction of The Roman Missal in JSON format

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ This file is straightforward. It is a JSON list consisting of all the paragraphs
3636

3737
The following is a snippet from the `canon.json` file.
3838
At the top level is an array, which houses all the Canon laws.
39-
Each law has an `id` and either a `text` or an array of `sub_laws`.
40-
The `sub_laws` have an `id` and a `text`.
39+
Each law has an `id` and either a `text` or an array - `sections`.
40+
Each `sections` object contains an `id` and a `text`.
4141

4242
```json
4343
[
@@ -47,7 +47,7 @@ The `sub_laws` have an `id` and a `text`.
4747
},
4848
{
4949
"id": 5,
50-
"sub_laws": [
50+
"sections": [
5151
{
5252
"id": 1,
5353
"text": "Universal or particular customs presently in force which are contrary to the prescripts of these canons and are reprobated by the canons of this Code are absolutely suppressed and are not permitted to revive in the future. Other contrary customs are also considered suppressed unless the Code expressly provides otherwise or unless they are centenary or immemorial customs which can be tolerated if, in the judgment of the ordinary, they cannot be removed due to the circumstances of places and persons.\n\n"
@@ -86,3 +86,4 @@ You need to have Python installed on your machine for this.
8686

8787
Feel free to leave me a note when you end up using the JSONs from this project.
8888
It would be fun for me to learn how and where you put this project to use! 🤓
89+

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def read_canon_law() -> list:
3737
sorted_individual_sub_laws = sorted(individual_sub_laws, key=itemgetter('id'))
3838
law_object = {
3939
"id": int(law_num),
40-
"sub_laws": sorted_individual_sub_laws
40+
"sections": sorted_individual_sub_laws
4141
}
4242

4343
canon_law_list.append(law_object)

0 commit comments

Comments
 (0)