Questions tagged as 'json'

2
answers

Append to object to another object?

I am trying to make a type of append inside an object, but I would not be knowing what method to use to achieve it. For what I'm looking for, they recommend using an array, but I honestly do not feel like using that method. (When I use db I do n...
asked by 14.09.2018 / 01:23
0
answers

Sort query output in mongoose (find) by two fields

I can not sort the result of a query in mongoose and I do not know if an aggregation function is necessary to achieve that order. I have a column called _id and another column called comment_id (which contains the main _id to reference). This...
asked by 29.08.2018 / 15:53
1
answer

Error mysqli_num_rows () expects parameter 1 to be mysqli_result,

This error appears: Warning: mysqli_num_rows () expects parameter 1 to be mysqli_result, boolean given in C: \ xampp \ htdocs \ simple-shopping-cart \ index.php on line 74 at the time of loading the web, I'm not sure, if I did bad BD or somet...
asked by 24.08.2018 / 21:10
1
answer

Problem when deserializing JSON in dataSet

I am trying to deserialize a JSON result towards dataset . When trying to do it I throw the following error:    Additional text found in JSON string after finishing deserializing object. Path '[0].studentID' , line 1, I do not...
asked by 15.08.2018 / 16:56
1
answer

how to make promises of Javascript to insert data in a table with Json data

I hope you can help me with this little problem that has not allowed me to really move forward. I do not know much about this and I have been receiving help and they helped me with javascript promises and I did not manage them, and I can not mov...
asked by 15.08.2018 / 23:46
1
answer

two or more graphics in real time highcharts

I'm looking for help with some graphics in real time with highcharts. There are more than two graphs on the same page. The error is that I get both points on the same graph. <!-- 1grafico --> <div class="container" id="container" name...
asked by 13.08.2018 / 18:50
0
answers

How to show image with JSONObject PHP MySQL in Android Studio?

public String getStringImage(int position){ String imagen = ""; byte[] encodeByte = Base64.decode(Imagen, Base64.DEFAULT); Bitmap bitmap= BitmapFactory.decodeByteArray(encodeByte, 0, encodeByte.length); try{ JSONObject js...
asked by 07.08.2018 / 06:41
3
answers

doubt with the $ .get function of the jquery library

I am learning javascrit using the jquery library, and I have not been able to solve the following problem, which consists of a login that the user requests and constrasena, and if they agree with the user that is defined in a php file I should s...
asked by 04.08.2018 / 01:09
1
answer

SyntaxError: JSON.parse: unexpected character at line 1 column 2 of the

I have problems trying to parse my JS Here I try to parse him var JSONdata = JSON.parse(message); //parseo la informacion // console.log(JSONdata); nombre = JSONdata[0].nombre; nit = JSONdata[0].nit; funcionario = JSONdata[0].funci...
asked by 01.08.2018 / 18:43
0
answers

Show by window mockeados data

I'm trying to show some data mockeados (removed from an API) to show them by window and I'm a little lost. This HTML does an include of another HTML that is where the call is made to the services part, in this case the mockeados data that I p...
asked by 25.07.2018 / 11:38