Questions tagged as 'json'

1
answer

How to modify a Json object (javascript)?

I need to change a json Object that I'm receiving. I would like to insert a data of an input in this Json. The idea is simple put a data, it pulls the json according to this data, but I need to change the json with that same data. I need to chan...
asked by 03.12.2015 / 21:33
2
answers

Sorting objects in a Json without id in Angularjs

How can I order the display of an array of Json objects in Angular, ng-repeat ? orderBy ? json has no id to do this sort order, I would like to be able to sort it by "last added" string.     
asked by 16.07.2015 / 15:17
2
answers

Error reading dynamically generated JSON with file_get_contents

I have this code that generates a json file to me header("Content-Type: application/json; charset=utf-8;"); $codigo = $_GET['cod']; //variável para parametro que será passado ao servidor via URL $sql1 = mysql_query("Select nome, valor fro...
asked by 24.02.2015 / 03:39
3
answers

List json object returned by php

I need a help, I'm developing an app with HMTL5, JS, CSS that lists a pizza menu. My PHP returns an array that I use json_encode() to make it available in JSON format. So far everything then I have the following <div> : <...
asked by 19.05.2015 / 01:51
1
answer

Search results for an API in php / json

I'm using the following API: link This is a database of books / documents and I need to access it there to fetch some records. I already have the registry and a key to use. It's just that I've never done anything like it, and I do not see how...
asked by 20.11.2014 / 15:27
1
answer

Treat Json Array in PHP

How do I get an item from an array in PHP. I have the following code: <?php if (isset($_POST['newUsers'])) { $newUsers = $_POST['newUsers']; foreach ($newUsers as $user) { $usr = json_decode($user); var_dump($use...
asked by 26.11.2014 / 14:02
1
answer

Updating Div data from a Json file without blinking the screen

I'm using the script below to get values that are in a Json file (which is stored in industrial automation equipment connected to a TCP / IP network and is a "type" of a basic ULTRA web server) and put them into Divs of a html page based on the...
asked by 18.07.2014 / 02:31
1
answer

Google Pie Charts is not displayed when the data has more than one row

I'm trying to display a PieChart, however, if the search in the database returns only one row, the chart is displayed. If you return more than one line, the graph does not appear. function that generates graph data: public function grpAplic...
asked by 14.08.2014 / 14:51
1
answer

Paste values from ContentEditable fields to send to POST

I am making a Carousel using Bootstrap . The dados that fed this Carousel will be modified a few times, so I decided to create a dados.json file to serve as the basis for these files. I made a classe...
asked by 20.10.2014 / 23:27
1
answer

How to convert a JSON object to XML in AS3?

There is some method of converting a JSON object to an XML object using
asked by 17.02.2014 / 19:50