I'm trying to consume a JSON, but in the structure I've developed the code does not return me data. Could you please help me and explain the concept of consumption and how does the JSON framework work?
Code that I developed, does not return L...
To search for data in a simple JSON , such as:
{
"chave1":"valor1",
"chave2":"valor2"
}
I use something like this:
$.getJSON(dados, function(json) {
$.each(json, function() {
$('#r').append("<p>"+this.chave1+"&l...
Hello, I have a question. I need to pass a user-entered CPF as a parameter in my POST call to return with his data. The call works with an already registered CPF, but only works if the CPF is passed directly as a parameter, as I did below and ty...
Hello, I have the following code in php:
<?php
$con=mysqli_connect("localhost","user","senha","banco");
$parametro = $_GET["parametro"];
if (mysqli_connect_errno()){ echo "Failed to connect to MySQL: " .mysqli_connect_error(); }...
I'm having trouble populating a table in my code cshtml . I'm new to ajax and I'm not fully understanding what I need to do with the data that came from the bank.
Here is my code:
Code cshtml :
<div><table id="data...
There is a small request pattern with several parameters, but I'll simplify it this way:
$parametrosdBase = array('nome' => false, 'codigo' => 83474, etc..
I get a string in JSON format that should theoretically CONTAIN these paramete...
Ex: In the company where I work put a lot of data in my code that does not need to be in the database, but it is not actually text or content. They are a lot of validations and depending on the clause it returns a certain type of content, the pr...
I have a command to get the size of my json, but I need to use a string to indicate which object I want to get the size of:
var comando = data.result[0][0].'Pedidos'.length;
The error you give me is this:
Uncaught SyntaxError: Unexpecte...