Questions tagged as 'json'

1
answer

PHP returning json as string

I'm returning this JSON using PHP but the object genre and cast is being returned as string { "id":"5", "title":"A Era do Gelo", "year":"2002", "age":"0", "time":"81", "genre":"[{\"id\": 16, \"name\": \"An...
asked by 08.12.2017 / 17:25
2
answers

Question about array in php [closed]

I'm breaking my head and I'm already out of ideas, summarizing my code looks like this: <?php $var = 'arquivo_1'; // podendo ser arquivo_1 ou arquivo_2 $arquivo_1 = array( "algo1" => "alguem1", "algo2" => "alguem2" ); $arquivo_2 =...
asked by 13.02.2017 / 18:10
1
answer

Python - I would like some examples of using "APLICATION / LD + JSON"

I've always worked with REST for integrations, now I'm using a new system where I can not just use pure JSON, they use LD Json, and I still do not quite understand this concept and I'm having some difficulties implementing it. So my question is...
asked by 07.05.2018 / 19:58
1
answer

How JSON works on a project [closed]

Hello, I've been asking a lot of questions, which seem basic, but it makes me confused, so better ask, lol. I would like to know how the .json file works in a project, what it does. Thank you!     
asked by 02.09.2015 / 19:54
2
answers

Pass an array to another format

The array is coming in this database format: array (size=12) 0 => array (size=3) 'maquinas' => string '111' (length=3) 'mes' => string '1' (length=1) 'YEAR(data_ordem)' => string '2016' (length=4) 1 =>...
asked by 15.12.2016 / 20:08
2
answers

Passing of PHP Parameters ➝ Javascript ➝PHP [closed]

I need to pass a parameter via JSON from a PHP page ➝ Javascript ➝ PHP, I'm using the Ajax method of Jquery but I'm not getting it, it follows code snippet. ✓ Index.php <html> <head></head> <body> &...
asked by 16.11.2017 / 12:44
1
answer

Format result in JSON with data returned every 30 minutes

Not long ago, I asked this question: Retrieve parameter to filter in SQL: date and time every minute Now I need the result to be in the same JSON format as below: {label:'00:00', y:92 , indexLabel:'92'}, {label:'00:00', y:92 , indexLabel:...
asked by 25.08.2016 / 17:57
2
answers

How to deserialize a json to int? [duplicate]

I have a test json to see if my implementation worked in my code: string json = @"{'ItemHome':[{'Texto':'111','Icone':'aaaa','Color':'aaaa'}, {'Texto':'111','Icone':'aaaa','Color':'aaaa'}, {'Texto':'111','Icone':'aaaa','Color':'aaaa'}, {'Num...
asked by 27.03.2017 / 19:52
1
answer

deserialize JSOn object

I am not able to underealise this object, public class itensjsonPai { public string resource { get; set; } public List<transaction> transaction { get; set; } } public class itensjsonfilho { public string id { get; set; }...
asked by 20.07.2018 / 16:43
1
answer

Assign Json content to PHP variable (RESOLVED)

Save Galley, I'm starting in the WebService world and I'm already faced with the following problem. The TOTVS Server via rest, returns me exactly as follows: $resposta = enviaConteudoParaAPI($cabecalho, $conteudo, $url, $tpRequisicao); prin...
asked by 28.08.2018 / 20:45