semarketir / quranjson

Quran JSON ~ 6236 verses, 114 surah, 30 Juz
https://semarketir.github.io/quranjson-web
MIT License
582 stars 231 forks source link

Juz indexes in json are strings, should be integers #37

Open alrayyes opened 4 years ago

alrayyes commented 4 years ago
{
    "index": "110",
    "name": "an-Nashr",
    "verse": {
        "verse_0": "بسم الله الرحمن الرحيم",
        "verse_1": "إذا جاء نصر ٱلله وٱلفتح",
        "verse_2": "ورأيت ٱلناس يدخلون فى دين ٱلله أفواجا",
        "verse_3": "فسبح بحمد ربك وٱستغفره  إنهۥ كان توابا"
    },
    "count": 3,
    "juz": [
        {
            "index": "30",
            "verse": {
                "start": "verse_1",
                "end": "verse_3"
            }
        }
    ]
}

"index": "30" should be "index":30. This would make parsing json a little bit easier. Can this be implemented?

alrayyes commented 4 years ago

The same thing goes for "index": "110"

alrayyes commented 4 years ago

Same issue in the tajweed files :)

alrayyes commented 4 years ago

And translation files :)