Questions tagged as 'json'

1
answer

protect my routes - print my Json

I am trying to avoid printing my Json format directly (or I do not know if there is any other way) What happens is that when I access my route in this way http://blissre.test/projects/ I upload my projects So far so good, when l...
asked by 31.03.2018 / 02:37
1
answer

bring a different element in order at the same time, from JSON

This time I'm stuck in this part, I need to bring the elements of a JSON, one at a time, but for each time the function is executed, I bring the following one in the JSON, in order, and that when I arrive to the last element start again to show...
asked by 15.05.2018 / 23:53
1
answer

SQLSTATE error [23000] when trying to add a new item to my BD through my api

I am developing a API with slim framework 3 that connects to a local database. The problem is the following, when I try to insert a new element, it throws the following error {"error": {"text": SQLSTATE[23000]: Integrity constr...
asked by 14.02.2018 / 15:48
4
answers

Search within an Array to print match value

I have an array of users and I want to print in an html only the one with the email: "[email protected]", how can I do that search within the array. var user = [ { "id": 1, "name": "Leanne Graham", "username": "Bret", "email"...
asked by 17.03.2018 / 21:42
1
answer

How to show data with Vue-resource in Tabla Boostrap Vue?

I want to show only some data of the following json: link In a Boostrap-Vue table it is assumed that I have to export the data but it is not displayed. My code is as follows and I just want to show certain information such as first and l...
asked by 31.01.2018 / 23:44
1
answer

Problem when traveling the json obtained with ajax

I have this code HTML to consume JSON by ajax , but it does not show me the data I want to bring. Can you tell me what I'm doing wrong? The url of JSON is this: link * This is the script that t...
asked by 09.01.2018 / 19:17
2
answers

Javascript TypeError: variable undefined

I have the following problem in my javacript code, I have searched for all kinds of solutions and nothing. Here I have my code ready and running trial version ajax.html there all var arreglo; var area = new Array(); v...
asked by 15.12.2017 / 22:06
1
answer

Convert query in stored procedure to JSON in POSTGRES

Hello, I am doing a procedure stored in POSTGRES of type GET. I want to consult the information from this one but it sends me the following error: CREATE OR REPLACE FUNCTION p.products(_p_id TEXT) RETURNS TABLE ( _name TEXT , _total MONEY , _p...
asked by 21.11.2017 / 22:57
1
answer

What is the way to work with a JSONArray to fill a table with a database?

I am using a JSONArray object in an Android application to dynamically fill a table with the information obtained in the query. The problem is that until now I was working with a JSONObject, with which the table was filled, but it was only with...
asked by 03.11.2017 / 10:11
4
answers

How to parse json to class objects in java?

I'm trying to consume an api with java I use Apache's httpClient library, it consumes me well and shows me the result and JSON all right up there, now the question is that I have a class with the attributes and when trying to obtain the data to...
asked by 10.10.2017 / 21:30