Questions tagged as 'json'

1
answer

Pass a JSON from the view to the route

I'm trying to send JSON of view to a route, but I can not. Unfortunately I know little about JSON , ajax , GET and POST . In the view, json: var json = { "numeroMesa": numeroMesa, "itens": itens }...
asked by 03.02.2016 / 16:53
1
answer

Filter JSON of Facebook Graph Api Feed

The JSON that the Graph API returns from a Feed of a page using the address "graph.facebook.com/ID / feed? access_token = _ACCESS_TOKEN_ "displays the full Feed , but I only wanted the posts made by the page itself. How do I filter?    ...
asked by 28.02.2014 / 05:10
1
answer

ClimaTempo API - Cities with accent give error

I have the following Endpoint where you get the name of the city and state in the URI: @RequestMapping(value= "/clima/{nomeCidade}/{ufCidade}/agora", method = {RequestMethod.GET, RequestMethod.OPTIONS} , produces="application/json" ) public R...
asked by 26.06.2018 / 21:08
1
answer

PDO without JSON support

I need to return a row in JSON, but the PDO does not seem to give full support to operations. Always the type 245 error message.    PDO :: prepare (): Unknown type 245 sent by the server. Please send a report to the developers I tested...
asked by 18.07.2017 / 05:19
1
answer

How to display multiple values of a JSON in PHP

How can I display all the values of a JSON in PHP ?? I'll give you an example, I use the Code below to request the JSON $json_file = file_get_contents("http://backpack.tf/api/IGetUsers/v3/?steamids=76561198012598620"); $json_str = j...
asked by 04.02.2015 / 19:00
1
answer

Display json value in a div

How do I make a value in JS appear in html content? app.js // BUSCA OCORRENCIAS $("#menuOcorrencia").click(function() { var operacao = "selectOcorrencias"; $.getJSON("http://url.com.br/appOperacoes.php", {operacao:operacao,con...
asked by 21.12.2015 / 02:51
1
answer

How to read a Json without knowing what's inside it or the amount of data?

I am developing a dynamic form for Android in which you receive a Json file and create the forms. It's all automated, except for the part that I have to get a string in Json's hand. Is there a way to read the string without naming it within ....
asked by 16.06.2015 / 23:16
3
answers

How to create a mini database written in php using a json-formatted text file

I was needing a personal mini database written in PHP to store some internal data from my site, where I would create new properties, change them and delete later if necessary. The example below shows how this .txt file would look and how to f...
asked by 13.08.2015 / 22:49
4
answers

how to filter an ngRepeat loop according to the value of one of the contents of an array

Well, the content of a page on my site is generated from the following JSON template: [ { "company":{ "name":"Nome do Cliente", "url":"#" }, "client":{ "name":"Projeto", "url":"#" }, "tags":[...
asked by 16.12.2014 / 21:30
3
answers

How to show values stored in JSON in JavaScript

It has a variable in a file JSON that is called "value" and it is assigning the values: 2.51,2.56,2,87,2,89 and 2.94. The string of this JSON is being displayed in DIV . How do I show only those values?     
asked by 16.03.2015 / 15:22