I use jbackend and plugin for K2 (plg_jbackend_k2_1.3.1_J3).
Articles in K2 use extra fields.
The resulting JSON file is used to view the list of articles in the mobile application online.
The problem is that the key in this JSON file that relates to extra field values is displayed as a number, not as a string
An error occurs when the JSON file is parse (AngularJS).
"extra_fields": {
"0": {
"id": "12",
"name": "Grad",
"value": "Medjugorje",
"type": "textfield",
"group": "4",
"published": "1",
"ordering": "2",
"alias": "Grad"
},
"1": {
"id": "13",
"name": "Postanski broj",
"value": "88269",
"type": "textfield",
"group": "4",
"published": "1",
"ordering": "3",
"alias": "Potanskibroj"
Can, for example, replace string: v0, v1, v2, v3 instead of numbers: 0,1,2,3. Where can I change the code.
"extra_fields": {
"v0": {
"id": "12",
"name": "Grad",
"value": "Medjugorje",
"type": "textfield",
"group": "4",
"published": "1",
"ordering": "2",
"alias": "Grad"
},
"v1": {
"id": "13",
"name": "Postanski broj",
"value": "88269",
"type": "textfield",
"group": "4",
"published": "1",
"ordering": "3",
"alias": "Potanskibroj"