Questions tagged as 'json'

2
answers

Handle and model Json object

I have a JSON object with the following structure: [{ "Codigo": 7, "Descricao": "Atividade 1", "CodigoMilestone": 6, "TempoRevisado": 2, "Inicio": "\/Date(1445738400000)\/", "...
asked by 30.10.2015 / 20:57
2
answers

Convert time format in seconds

I have a value displayed by a json: "tempoShoutcast":"03:11:48" How can I make this format for seconds?     
asked by 11.01.2017 / 07:15
1
answer

How to execute a javascript function from a json file

I have a json file that is generated by php and it looks like this: { "status":200, "command":"faca algo", "action":"function (){document.write('quer que eu faça algo?');}", "type":"acao" } How to execute the function...
asked by 07.10.2014 / 02:23
2
answers

Import events into calendar JSON format

I want to import events from a non-private, server-side Google Calendar (PHP) into JSON format. Since I just want to receive information and do not need to edit / create events I assume there is a way that does not need authentication. I k...
asked by 04.02.2014 / 00:13
2
answers

How to display information from a JSON file in the browser in a friendly way?

The application receives a JSON file, already validated, and should display it to the user who is a programmer. I would like to display the JSON as in this validation site and beautify JSON . So I wanted this JSON: {"glossary": {...
asked by 19.07.2017 / 17:35
1
answer

JSONException being thrown on Twitter search - Java

I have an algorithm that does a search for old tweets on Twitter. The application ran normally for a few days, but out of nowhere it started throwing an exception. Code: public static List<Tweet> getTweets(String username, String sinc...
asked by 05.07.2015 / 17:17
2
answers

Best / Safe way to transfer sensitive data to an android application via JSON

I am trying to develop an application for android that will work with a database in this case MySQL and I was thinking of doing communication between the database and the application via JSON the data would have to be transferred over SSL but ev...
asked by 10.07.2014 / 18:08
2
answers

File Upload Multiple via aJax - PHP

I'm trying to upload files via ajax and PHP with the following codes below and it's not working. I can not identify what I'm doing wrong. Page <div id="bsUpload"> <form action="" method="post" enctype="multipart/form-data">...
asked by 21.01.2015 / 19:36
2
answers

Output in json with json_encode ()

   json_encode () - Returns the JSON representation of a value If I do: $foo = array('a', 'b', 'c', 'd', 'e'); echo json_encode($foo); I'll get: ["a","b","c","d","e"] So far so good, I'm getting an array and turning it into a json...
asked by 10.11.2015 / 16:18
1
answer

How ajax does to identify classes

I have the following application: function atualizarPrdutos(categoria){ $.ajax({ type: "POST", url: "teste.aspx/InsertData", data: JSON.stringify({categoria:categoria }),...
asked by 30.05.2014 / 14:04