I know they always ask for code, but my question is basic. I also know that you can qualify it as "general knowledge" or "subjective response", but although it seems incredible, there are not many topics in Spanish that speak of the subject....
I'm doing a web application of a test and I have a JSON file with the questions, but I have an error trying to convert the JSON file to a javascript object using the JSON.parse() function.
Here is the code:
function escogerPregunta (...
How can I show the iP that belongs to an "ip_id" within elements?.
data.json
{
"json": [{
"list_ip": [{
"1": "190.15.20.18",
"2": "10.10.10.100",
"3": "10.20.30.40"
}],
"cosas": [{
"elementos": [{...
I'm having a problem, that by generating a payment preference with this JSON:
{
"items":[
{
"title":"pago 3 anticipo",
"category_id":null,
"quantity":1,
"currency_id":"ARS",
"unit_price":1...
I want to extract the data from a json using javascript and html . What I need is to show the values of the properties id and name .
This is the URL of the API.
The answer is this:
{
"mohademago": {...
I am sending an http request from Angular to a PHP server and he replies this:
{
"data": null,
"status": -1,
"config": {
"method": "POST",
"transformRequest": [
null
],
"transformResponse": [
null
],
"...
I execute the SQL query and I receive the array processed with fetch_assoc . Finally in php I return it through ajax with json_encode .
echo json_encode($this->rows);
And this would be the code in JS:
function se...
I have the following query
$query="SELECT nombre,edad,genero FROM ...";
$result = sqlsrv_query($_conexion,$query) or die('Error en la consulta');
while($row = sqlsrv_fetch_array($result)) {
extract($row);
$mundos['data'][]=
a...
I'm doing the final project and I have a restful web service created in Netbeans that uses a remote database to a Glassfish server. We have to create two apps a desktop and the other Android in which you can manipulate / consult in this database...
I have a web service hosted on Java in Netbeans (NO MAVEN) with several classes that are related to foreign keys. For example, I have a Notes class that has two foreign keys (idUsuari and idIncidencia). From the Postman, I do a GET with the meth...