Questions tagged as 'json'

1
answer

Is DataAnnotation compatible with Json?

Hello! I would like to know if DataAnnotation is compatible with Json, since I am validating a form and would like to remove the doubt. I am using Angular on the front and returning my object in Json format, I would like to validate the return o...
asked by 28.03.2018 / 23:37
1
answer

Return a table between an initial and final date range, php + json

I'm trying to return a table from a report dashboard between a specified date in, but when I click on search it just returns me Error:SyntaxError:JSON.parse:unexpectedcharacteratline1column1oftheJSONdata.Herearemycodes:  selectdata.js$(docum...
asked by 04.04.2018 / 02:11
1
answer

My app does not return the JSON data

I am making an app and in a part of it the user can update the login data, it is only he enter the screen that the data is loaded and filled, automatically. The problem is that this is not really happening! The data is not coming! I already did...
asked by 10.10.2017 / 19:34
2
answers

How do I get field values?

My code $(document).ready(function(){ $('.formulario').submit(function(e){ e.preventDefault(); var inputId = $('.inputId').val(); $.ajax({ method: "GET" ,url:"localhost/api/32327ed48666154acb54810521d6f01e0d5de59e/m...
asked by 01.11.2017 / 13:32
1
answer

Problem with category and subcategory checkbox to display their respective products

I have a problem with jquery, I do not really have much practice with jquery, but I work with ajax and json to query the database and return data. Well I have a page that the client wants me to take from example: link , on the left side we h...
asked by 26.10.2017 / 16:11
1
answer

Python handle API [closed]

I want to use the following API response: link Then I want to divide it into blocks like this: [1456617600,434.3867,434.3867,433,781,433,781.4.15450000] and put it on a list to work with the data. I was doing so but it is not working:...
asked by 29.06.2017 / 20:37
2
answers

Angular + JSON: Return does not appear in table

Hello everyone. I am studying and doing some programming tests with PHP + AngularJS. I looked at everything, but I could not print the PHP-generated array in a html table. Can anyone help me? I will be very grateful! The code is below....
asked by 16.10.2016 / 17:43
2
answers

How to show json with jQuery and PHP?

I made this ajax here, PS: the data arrives until the file data.php $.ajax({ type: 'post', data: $( this ).serialize(), dataType: 'json', url:'simulacao/dados.php', success: function(data){...
asked by 26.03.2017 / 20:41
2
answers

Saving to the database

I need to save a form to the bank, with several input fields. Someone has an example of how you would pass the fields. I am using the framework AngularJS (If you need to transform them into an array or use json encode). This is the part of...
asked by 12.06.2015 / 17:38
1
answer

Create menu from a JSON file using AngularJS

I have a JSON file with the following structure: "[{\"Menu\":\"General/Register/User\"}, {\"Menu\":\"App/MultiExport/Parameter\"}, {\"Menu\":\"App/MultiExport/CreateFile\"}, {\"Menu\":\"App/MultiCube/Create\"}]" How do I create a menu using...
asked by 17.11.2014 / 14:07