// Using Fetch API
fetch('https://cdn.thegr8moore.tech/serve.php?file=gtaw_depa_categories.json')
.then(response => response.json())
.then(data => {
console.log(data);
// Process your data here
})
.catch(error => console.error('Error:', error));
// Using XMLHttpRequest
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var data = JSON.parse(this.responseText);
console.log(data);
// Process your data here
}
};
xhr.open("GET", "https://cdn.thegr8moore.tech/serve.php?file=gtaw_depa_categories.json", true);
xhr.send();
// Using jQuery
$.getJSON("https://cdn.thegr8moore.tech/serve.php?file=gtaw_depa_categories.json", function(data) {
console.log(data);
// Process your data here
});
// FormIO Component with CDN
static schema() {
return SelectComponent.schema({
type: 'customDropdown',
label: 'Data Selection',
key: 'dataSelection',
placeholder: 'Select an item',
dataSrc: 'url',
data: {
url: 'https://cdn.thegr8moore.tech/serve.php?file=gtaw_depa_categories.json',
headers: [
{
key: 'Content-Type',
value: 'application/json'
}
]
},
valueProperty: '', // Adjust based on your data structure
template: '{{ item }}', // Adjust based on your data structure
refreshOn: 'mounted'
});
}
// Using Fetch API
fetch('https://cdn.thegr8moore.tech/serve.php?file=gtaw_locations.json')
.then(response => response.json())
.then(data => {
console.log(data);
// Process your data here
})
.catch(error => console.error('Error:', error));
// Using XMLHttpRequest
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var data = JSON.parse(this.responseText);
console.log(data);
// Process your data here
}
};
xhr.open("GET", "https://cdn.thegr8moore.tech/serve.php?file=gtaw_locations.json", true);
xhr.send();
// Using jQuery
$.getJSON("https://cdn.thegr8moore.tech/serve.php?file=gtaw_locations.json", function(data) {
console.log(data);
// Process your data here
});
// FormIO Component with CDN
static schema() {
return SelectComponent.schema({
type: 'customDropdown',
label: 'Data Selection',
key: 'dataSelection',
placeholder: 'Select an item',
dataSrc: 'url',
data: {
url: 'https://cdn.thegr8moore.tech/serve.php?file=gtaw_locations.json',
headers: [
{
key: 'Content-Type',
value: 'application/json'
}
]
},
valueProperty: '', // Adjust based on your data structure
template: '{{ item }}', // Adjust based on your data structure
refreshOn: 'mounted'
});
}
// Using Fetch API
fetch('https://cdn.thegr8moore.tech/serve.php?file=gtaw_penal_code.json')
.then(response => response.json())
.then(data => {
console.log(data);
// Process your data here
})
.catch(error => console.error('Error:', error));
// Using XMLHttpRequest
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var data = JSON.parse(this.responseText);
console.log(data);
// Process your data here
}
};
xhr.open("GET", "https://cdn.thegr8moore.tech/serve.php?file=gtaw_penal_code.json", true);
xhr.send();
// Using jQuery
$.getJSON("https://cdn.thegr8moore.tech/serve.php?file=gtaw_penal_code.json", function(data) {
console.log(data);
// Process your data here
});
// FormIO Component with CDN
static schema() {
return SelectComponent.schema({
type: 'customDropdown',
label: 'Data Selection',
key: 'dataSelection',
placeholder: 'Select an item',
dataSrc: 'url',
data: {
url: 'https://cdn.thegr8moore.tech/serve.php?file=gtaw_penal_code.json',
headers: [
{
key: 'Content-Type',
value: 'application/json'
}
]
},
valueProperty: '', // Adjust based on your data structure
template: '{{ item }}', // Adjust based on your data structure
refreshOn: 'mounted'
});
}
// Using Fetch API
fetch('https://cdn.thegr8moore.tech/serve.php?file=gtaw_prison_code.json')
.then(response => response.json())
.then(data => {
console.log(data);
// Process your data here
})
.catch(error => console.error('Error:', error));
// Using XMLHttpRequest
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var data = JSON.parse(this.responseText);
console.log(data);
// Process your data here
}
};
xhr.open("GET", "https://cdn.thegr8moore.tech/serve.php?file=gtaw_prison_code.json", true);
xhr.send();
// Using jQuery
$.getJSON("https://cdn.thegr8moore.tech/serve.php?file=gtaw_prison_code.json", function(data) {
console.log(data);
// Process your data here
});
// FormIO Component with CDN
static schema() {
return SelectComponent.schema({
type: 'customDropdown',
label: 'Data Selection',
key: 'dataSelection',
placeholder: 'Select an item',
dataSrc: 'url',
data: {
url: 'https://cdn.thegr8moore.tech/serve.php?file=gtaw_prison_code.json',
headers: [
{
key: 'Content-Type',
value: 'application/json'
}
]
},
valueProperty: '', // Adjust based on your data structure
template: '{{ item }}', // Adjust based on your data structure
refreshOn: 'mounted'
});
}
// Using Fetch API
fetch('https://cdn.thegr8moore.tech/serve.php?file=gtaw_vehicles.json')
.then(response => response.json())
.then(data => {
console.log(data);
// Process your data here
})
.catch(error => console.error('Error:', error));
// Using XMLHttpRequest
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var data = JSON.parse(this.responseText);
console.log(data);
// Process your data here
}
};
xhr.open("GET", "https://cdn.thegr8moore.tech/serve.php?file=gtaw_vehicles.json", true);
xhr.send();
// Using jQuery
$.getJSON("https://cdn.thegr8moore.tech/serve.php?file=gtaw_vehicles.json", function(data) {
console.log(data);
// Process your data here
});
// FormIO Component with CDN
static schema() {
return SelectComponent.schema({
type: 'customDropdown',
label: 'Data Selection',
key: 'dataSelection',
placeholder: 'Select an item',
dataSrc: 'url',
data: {
url: 'https://cdn.thegr8moore.tech/serve.php?file=gtaw_vehicles.json',
headers: [
{
key: 'Content-Type',
value: 'application/json'
}
]
},
valueProperty: '', // Adjust based on your data structure
template: '{{ item }}', // Adjust based on your data structure
refreshOn: 'mounted'
});
}
How to Use This JSON CDN
This CDN allows cross-origin requests from any website. Simply use the serve.php endpoint with the file parameter: