Is there any way to do the JSON encode that is in PHP, but from JavaScript or jQuery?
I need to pass an array that I create from JavaScript through an Ajax connection that I send by POST, and then this request is transformed by PHP into a GET...
Greetings to Everyone
I'm trying to access the values of the Result
{"Result":{"CODIGO":"Error","DESCRIPCION":"true","ID":"23"}}
The Controller, for now I only access the Result.
class FirstViewController: UIViewController {
@IBOutle...
I have this output of json what I want to know is how to separate each object - ie: (3,2,5 etc.) in variables to use those variables in a javascript .
Example:
{
"procede": "1",
"status": "1",
"statusText": "Corre...
This string returns it when you send the data to a provider:
string(474) "
{
"status":"success",
"Data":
{
"RazonSocial":"Ferreteria Perez",
"RFC":"XAXX010101006",
"Calle":"Av.Juarez",
"Numer...
I am using the Graph API of Facebook with webhook to channel an incoming message from a page in my application. The response received from the API is as follows:
{ "object":"page",
"entry": [{"id":"594052300785675",
"time":14...
I have this JSON array:
[{"amount":"500"},{"amount":"750"},{"amount":"250"}]
I have tried to add the values it contains with:
$.getJSON('http://api.com..../water.php',function(data_water_tot){
console.log(data_water_tot);
$.each(data_wat...
I'm working with php, mysql and jquery. Where I create a json with php that brings a single data, and I'll find it with jquery ajax.
If I make a console.log to my data variable brought with ajax it shows me the data like this: [{"folio": "4562...
I have a problem I do not know how to convert the List<document> to json:
public static List<Document> d() {
conexion c = new conexion();
List<Document> resultados = new ArrayList<>();...
I create a array with JSON and send it in an encrypted variable in base64 in a form.
I recover it by POST , the decrypted and it remains:
[
{"idcliente":"1",
"id_comercial":"999999",
"preciototal":"698.01",
"p...
I have this code and a value in the url that I call with the function: $ _GET (called cID = (Number)) I'm stuck and I can not make the query I do with the json, the only way it works is adding the number manually, but I need you to take it from...