Questions tagged as 'json'

2
answers

Problems with Json

I have a file with JSON-formatted requests made to a server and my problem is that I know how I can get these requests on those lines and deal with php Example of how the File is {"a":1,"b":2,"c":3,"d":4,"e":5} {"a":1,"b":2,"c":3,"d":4,"e":...
asked by 27.06.2015 / 19:45
3
answers

Traversing array of objects and accessing a value

Good afternoon, I have a difficulty, where I need to access an element of an array of OBJECTS, I'm not able to access with the foreach, or for. I need your help! The array of objects: Array ( [0] => stdClass Object (...
asked by 11.10.2016 / 15:56
1
answer

JSON generated by json_encode gives error in character "{"

I do not understand what's happening, I'm using a json_encode function in PHP and what does it return is invalid?! I'm using jsonlint as the validator, and it states that the error is in the first { . If I replace this characte...
asked by 10.12.2014 / 18:51
2
answers

Display most important information from a JSON file

How do I display only some of the most important information in a list as in the example below? { "userId": 1, "id": 1, "title": "DRF - Delegacia de Roubos e Furtos", "endereco": "Praca Maua, 5 - Centro", "tel":"2233-2701",...
asked by 07.10.2015 / 04:01
2
answers

How to return a query in JSON format with extra values and custom keys?

I want to return the result in JSON following this format: {"cadastros": [ {"id": 1, "STATUS": true, "pessoas": [], "podeEscrever": true}, {"id": 2, "STATUS": false, "pessoas": ['Maria', 'Ana'], "podeEscrever": true}, ], 'princi...
asked by 29.07.2015 / 00:28
2
answers

How to create a class and pass a value of an attribute in the class constructor in C #

Hello, I'm doing an integration with the Tray Comerce API and thought about generating a generic class with the list answer . In all listings, the API implements the following return class: public class Response<T> { [JsonPropert...
asked by 20.06.2018 / 15:34
3
answers

How do I display the API JSON?

After performing this, I came across this error, which did not display API information. Being that in another URL of a similar API the code displayed and worked perfectly. API URL: link $.ajax({ type: "POST", dataType: "JSON", u...
asked by 30.10.2017 / 17:00
2
answers

How to put a json code in textarea html?

I'm developing a page that shows JSON code snippets in a textarea, but I've seen in some sites that there is some kind of plugin for this kind of view as in the "Errors / Exceptions" tab of this site - > link ... would you like to know if t...
asked by 25.08.2017 / 19:08
4
answers

How to parse on Json Android

I need to parse to the following json { "rssEmpregados": { "pesquisa": "marcia", "registoInicial": "0", "ordem": "ASC", "parametrosList": [ { "parametros": [], "ta...
asked by 29.11.2017 / 20:17
1
answer

Using IBM Watson with php and Curl

Good morning, I'm trying to use the IBM chatbot service on watson. As a test I created my workflow for a simple pizza order. At the beginning of the call he welcomes you and asks you which pizza I want. It validates 3 information 1- Quanti...
asked by 06.04.2017 / 15:47