You can then simply send the JSON response to the client.
Process the JSON response - and everyone's happy.
The JSON response will look similar to this.
The image on the left is a simplified example of the JSON response.
In this example, the Google Maps Geocoding API requests a json response for a query on "1600 Amphitheatre Parkway, Mountain View, CA".
En este ejemplo, la Google Maps Geocoding API solicita una respuesta json para una consulta sobre "1600 Amphitheatre Parkway, Mountain View, CA".
This method is used to send a JSON response.
Este método se utiliza para enviar una respuesta JSON.
This is a dot-notated expression that navigates via fields of the JSON response.
Es una expresión con notación de puntos que navega a través de los campos de la respuesta JSON.
If it's valid, you'll get a JSON response like this
Si es válida, obtendrás una respuesta JSON como la siguiente
If not supplied, the default JSON response will be used. fields
Si no se indica, se usará la respuesta JSON predeterminada. fields
Note that the JSON response contains two root elements
Ten en cuenta que una respuesta JSON contiene dos elementos principales
Zendesk returns a JSON response that looks as follows
Zendesk devuelve una respuesta JSON como la siguiente
The JSON response will look similar to this
La respuesta JSON se verá similar a esto
and decode the JSON response from the server to get the transaction id
y decodifica la respuesta JSON del servidor para obtener el identificador de la transacción