Questions tagged as 'json'

2
answers

Obtain remote data using Loopj

I am using loopj to log in and register using a remote WebService that uses MySQL to store data. I have the WebService configured so that when a user logs me, I get a response in the "Json" type object format: { "estado": 1 "ususrio": { "use...
asked by 05.06.2016 / 23:32
3
answers

Form of a JSON [duplicate]

To explain my problem better, I have this JSON: { "Person": [ { "Id":1, "Type":1, "Extra": [{ "Number":88888888, "Code":506 }] , "Personal":...
asked by 10.09.2018 / 16:11
4
answers

Fill a list with contents of an Api

I'm trying to fill a list of characters from an Api, but I have a question about how to fill the array, I had difficulties just having 10 characters and that these are listed and generate a link to a movie . So far I have the API call, but I onl...
asked by 01.02.2018 / 07:52
2
answers

How to remove a property from an Object? [duplicate]

I have an Object that I want to delete a property miObjeto = { propiedad1: "valor propiedad 1", propiedad2: "valor propiedad 2", propiedad3: "valor propiedad 3" } What I want is to remove the property propiedad2 of the obj...
asked by 14.09.2017 / 02:10
1
answer

JSON & JavaScript [closed]

Good morning. I am using this API: link The problem is that when I make a console log, from the DATA of this api, this is the skeleton that it has: The data is inside "0: Object". To be able to access inside the code, I have to...
asked by 29.03.2017 / 18:49
2
answers

When to use an API and when a Web Service? [closed]

I am currently in a project in which I have to perform a web service or an API, but not having much knowledge of these I do not know what to use, the client that will use it has to pass certain parameters and with these Parameters the web servic...
asked by 11.12.2018 / 18:16
2
answers

get variable from php file import it and use it in ajax

I have a php file with the following content ----filename.php--- <?php $text = 'eos'; ?> and I have a js file called app.js with the following content $(document).ready(function(){ $.ajax({ url: "http://127.0.0.1/swapng...
asked by 02.08.2018 / 02:15
2
answers

Serialize to JSON with C #

I'm trying to serialize an object that carries internally other objects with different properties, but when creating the file it only shows me the main attributes nombre y ubicacion , instead it does not appear dispositivo , which is...
asked by 26.06.2018 / 18:56
1
answer

Return an array of Objects with PHP

I have the following code in PHP: $output = ''; $output .= 'values: [{ '; $output .= 'arg: "N", '; $output .= 'val1: '.round($Val1N / $rowCount,2).', '; $output .= 'val2: '.round($Val2N / $rowCount,2).', '; $output .= 'val3: '.round($Val3N...
asked by 27.04.2018 / 14:22
2
answers

Is it possible to pass with PHP via GET / POST a token with AJAX and json without doing an echo?

I have a file called token.php that generates a token: token.php echo json_encode(Braintree_ClientToken::generate()); And I have a file that takes that token with AJAX and executes later codes: $.ajax ({ url: "token", type: "...
asked by 27.10.2017 / 20:06