Questions tagged as 'json'

1
answer

Create Web Service by reusing code from an already published site. Good practices in Asp.NET MVC

I need to create a web service in JSON reusing the maximum code my site has, but I do not know how to do it, if I should add a solution in my site project etc. I can not abstract the idea, I need to after that access it from a Wind...
asked by 06.06.2014 / 02:13
3
answers

How do I populate a $ scope (angular) with get.Json (jquery)?

I have a PHP application and use $.getJSON of jQuery to fetch data and thus submit it to my user. I would like to populate a table using Angular. How do I fill a $scope with the response of $.getJSON ? Code sample below (w...
asked by 27.02.2014 / 14:23
1
answer

How to transform Json into an object with dynamic fields using Gson on Android?

I have the following json:    {"Description": "app", "Field2": "app2", "Field3": "app3"}, "InString": "1", "Token": "ZoebarW9NiMk9O"} The "Data" field can contain 1: N fields. For example, I tried to build the following class structure...
asked by 27.06.2014 / 15:41
1
answer

Using JQuery DataTables with ASP.NET MVC 5

I have questions about how to use DataTables with the MVC 5 and submit button by returning a Json as per the site: DataTables $(document).ready(function() { $('#example').dataTable( { "processing": true, "serverSide": true, "ajax...
asked by 14.11.2014 / 02:49
2
answers

Json treatment

I have the following JSON return from a page: { "0":{ "id_user":"10", "contente":"45454545454", "time":"azul", "nick":"ikeda." }, "1":{ "id_user":"10", "contente":"4", "tim...
asked by 22.06.2018 / 21:31
1
answer

Read a value inside a complex JSON in C #

Good morning everyone! I am new to C # and am having a hard time getting a value inside a complex Json. Json is this: { "id": "58e50b82-50b1-4f29-a2e8-a9a544013255", "timestamp": "2018-06-20T18:00:12.935Z", "lang": "pt-br", "result":...
asked by 25.06.2018 / 14:45
2
answers

Completing form with AJAX and MySql

I need to complete a form, according to user demand, with information from the Database (MySql). Example: I have the fields "Institution", "Course" and "Period". For the user, firstly, only the "Institution" option will appear, once he has...
asked by 15.06.2015 / 19:35
1
answer

Return JSON saved in localStorage

I'm trying to retrieve a JSON that I've saved in localStorage, in the salvarOffline() function. With code like the listarHorarios() function I get a undefined and the loop repetition does not work. My code: function salvar...
asked by 24.03.2018 / 06:20
2
answers

Exchange array data between 'S' and 'N'

I have a function that I will adapt for a button, which will exchange a data within an array, between S and N . The code I have is: var array = [{"nome":"1","faltou":"N","goleiro":"N","pago":"N"},{"nome":"2","faltou":"N","golei...
asked by 18.10.2018 / 23:44
2
answers

Read a specific value in Json with PHP

I already researched all the sites, but I could not find a way to get the totalPage value. I'm reading Json with PHP and I need to get this value to do the pagination. The data below follows. object(stdClass) # 1(3) {...
asked by 29.10.2017 / 22:11