Questions tagged as 'json'

1
answer

length of a json in angularjs

There is some function in angular 1.6 to know the number of records that the json brings, I want to know from my controller, I have used $scope.count = Object.keys($scope.data).length ; but throws me 2, when my json brings 8 records, also...
asked by 21.04.2017 / 00:59
2
answers

Obtain PHP object data but it has a json array at the end

Good evening, I have a problem trying to get the answer from the webservices of afip. I send a request to the ws of afip and it returns me the following. I want to get the error but if you see it, the WS response is a stdclass and below...
asked by 08.04.2017 / 04:36
2
answers

Configure Web Service to respond in JSON

good day. I recently developed a WS with several methods, which connect to SQL server. I am trying to consume them through Ajax, researching this topic I found that to perform this action, my WS must respond in JSON format, I understand that nat...
asked by 17.05.2017 / 23:48
1
answer

Create content with json and ajax

I have some doubts and problems. My code is as follows. in html <div id="summary"></div> in js function callurl() { $.ajax({ url: 'https://jsonplaceholder.typicode.com/posts', type: "GET", dataType: "js...
asked by 28.03.2017 / 15:03
1
answer

Problem with service consumption [closed]

I want to consume this Api rest link but it does not bring me the key to be able to bring the information well. This is the JSON to try { "email": "[email protected]", "password": "candidato2017" } Here is the documentation about t...
asked by 25.02.2017 / 07:31
3
answers

Build json with several arrays

I have an api that receives this json: { "instructions":[ { "A":9, "B":1, "move":"moveover" }, { "A":8, "B":1, "move":"moveover" }...
asked by 16.02.2017 / 23:25
2
answers

How to regroup 2 JSONs for a given position? I put 2 examples to show what I want

I have 2 examples of the select that I want to generate a good one and a bad one. There you will see. $(document).ready(function() { var result_malo = [ [ { "id": 1, "nombre": "Bocina" },...
asked by 16.02.2017 / 15:54
1
answer

Json + PHP - Show text if the value is true

<?php $ch = curl_init("https://crackwatch.com/api.php"); // add your url which contains json file curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $content = curl_exec($ch); curl_close($ch); $json = json_decode($content, true); //print_R($json);...
asked by 05.02.2017 / 21:03
1
answer

update data in a remote database android studio

I'm trying to insert data into a remote mysql database .. I'm stuck .. I've looked for examples but nothing like that This is my java code import android.app.ProgressDialog; import android.content.Context; import android.content.Intent;...
asked by 14.03.2017 / 20:57
2
answers

Control of access error to properties, read json with javascript

I am reading a json variable and extracting information from it. I have the fields of the properties in an array. Everything is fine until the field I'm looking for does not exist the application gives an error of type:    I have...
asked by 20.01.2017 / 13:44