Questions tagged as 'json'

5
answers

JSON accent

I'm having an accent problem when I start JSON. If I use characters like ã, õ, ô, ç, some codes appear. I do not know if it influences, but the column is Collation "utf8_general_ci". search.php : $response = array(); require_once __DIR__...
asked by 25.05.2015 / 21:15
3
answers

Function that converts this string to json

I have string in the following format: "a=123 b="ABC" c="Olá Mundo!"" I need to create a function that transforms this string into this json: { a : 123, b : "ABC", c : "Olá Mundo!" } I think it has a bit of regular e...
asked by 10.06.2016 / 02:16
2
answers

Validation without the "ModelState.isValid"

I have the following scenario: [HttpPost] public PartialViewResult Create(string dados) { var clienteViewModel = DeserializeJson<ClienteViewModel>(dados); if (ModelState.IsValid) { } // Não têm como validar....
asked by 25.11.2016 / 18:52
3
answers

JSON for PHP via AJAX

I really need some help .. I have a select with the products: <!-- panel preview --> <div class="col-sm-5"> <h4>Adicionar Produtos:</h4> <div class="panel panel-default"> <div...
asked by 03.08.2015 / 22:59
3
answers

Send file and text via jquery asp.net mvc

Personal I was able to send the file through this code: var jqXHRData = null; $(function () { $('.progress').progress({ percent: 0 }); $("#divUpload").on('click', function () {...
asked by 28.06.2016 / 01:14
2
answers

Identify installed extension in google chrome

How can I identify that Google Chrome for the user accessing my site has a certain extension installed. For example, if you have the extension of Glogo.com/Itau, etc. .. I need to check this to display or not a banner for extension installati...
asked by 20.11.2014 / 21:05
1
answer

Portuguese online dictionary to make requests

I'm looking for an online dictionary in Portuguese that will allow you to do requests as an example: http://www.exemplo-dicionario.com/dicionario?palavra=palavra-pretendida And answer the definition of the word. You can return inform...
asked by 08.09.2014 / 22:18
2
answers

Pulling PHP information via AJAX with jQuery in json format

I have a jQuery code that creates a calendar that lets you leave reminders on the date. The code is as follows: var calendar = $('#calendar').fullCalendar({ slotDuration: '00:15:00', /* If we want to split day time each 15minutes */...
asked by 23.06.2014 / 02:59
2
answers

What are the ways to avoid infinite recursion without using the JsonIgnore annotation in SpringBoot

I have a @OneToMany relationship between Produto and TipoProduto where TipoProduto can have multiple Produto s and a Produto can only have TipoProduto . I would like to list all Produto s...
asked by 30.10.2017 / 00:33
2
answers

Serialize Object to JSON

How do I convert an object to JSON? I even found some codes on the internet that even worked, but my object has some fields that are other objects and then the conversion did not reach the last level. Example: class Pessoa(object): c...
asked by 09.07.2016 / 02:23