Questions tagged as 'json'

1
answer

Api receiving date with month and day changed

I have a class: public class Filtros{ public DateTime DataInicial { get; set; } public DateTime DataFinal { get; set; } //outros campos... } I have a C # API that receives the class: [HttpPost("ObterProvisoes")] public JsonRes...
asked by 12.07.2017 / 14:52
3
answers

Reading a Json object with javascript

In an ajax request it returns the following: { "og:locale":"pt_BR", "og:type":"article", "og:title":"Um titulo qualquer", "og:url":"http:\/\/www.umsite.com.br\/uma-url\/" } My request: $.ajax({ type: "GET",...
asked by 01.07.2017 / 17:08
3
answers

json php error, but json is correct

My php script returns a json, but when js is going to read json it says error. Butcopyingandpastingthesamejsonintoavalidator(ex: link ) says it's correct. For those who can help me, I appreciate it. Edit: follows json {"ArrayTopFiveIten...
asked by 31.05.2017 / 21:36
2
answers

How to get another div with the same name without changing the others?

Well it's as follows. I have the following code structure: A div called part-sec that brings the entire contents of the product. The price-product div comes with the price. So far so good. But below I have another div with the sizes and when...
asked by 13.07.2017 / 17:11
1
answer

JSON return with error: SyntaxError: missing; before statement

I'm having a problem with the JSON return, and I've researched and found no solution. I have the following requisition: var url = 'http://zcash.flypool.org/api/miner_new/t1UjazwJJnrUGoPh4GJYJ9FV6sYFzYg6H63?callback=?'; $.getJSON(url, func...
asked by 14.06.2017 / 20:19
1
answer

Array does not pass completely through json

Good night, I'm trying to pass an array to json but it only passes the last variable function GetSuppliersView() { global $db; global $id; global $type; try{ $query = $db->query("SELECT * FROM suppliers WHERE id = $...
asked by 16.06.2017 / 06:50
1
answer

Convert String Json CSS Inline to an array or json with PHP

I have a database in json and inside it there is a style object in which it has an inline css code, such as: "padding: 90px 0px 20px 0px; background: # 000000; display: block;" Let's say the return would be: { "style" : "padding: 90px 0p...
asked by 02.06.2017 / 16:32
1
answer

Doubt JSON PHP

I'm trying to display a JSON structure that will be built by MySQL , but I would like to separate the results into groups according to the field names I set in select and would like something like: minha_array carro carro 1...
asked by 09.05.2017 / 21:15
1
answer

Error creating php mysql line graph

I'm trying to make a line chart with php and mysql like this: jsfiddle based on that tutorial . My graph only returns empty with undefined columns: The idea is to make a graph where it contains 1 line per technician. Follow the fil...
asked by 11.05.2017 / 01:10
2
answers

Help with JSON and jQuery

Hello. Home I have the following code: JsFiddle Home In it I have 6 checkbox from 0 to 5 stars, and when I click on a checkbox it filters a json displaying the hotel that has such a star so everything is fine. The problem comes when I select...
asked by 15.05.2017 / 18:54