Questions tagged as 'json'

0
answers

Json null, an object was expected but it was a string (android studio)

When I try to register or login a user using a database (php) in android studio I get the following error in the logcat: java.lang.illegalstateesception expected begin_object but was string (Android Studio). Also, in the logcat I can observe the...
asked by 22.04.2018 / 12:10
0
answers

Add values from different collections in MongoDB

I am trying to add the values of each document and in each collection. I explain myself better, I have 5 collections in MongoDB and in each collection I have more than 280,000 documents. Something like that. 1st Collection. "_id" : Obje...
asked by 23.04.2018 / 09:18
1
answer

Add Json data and save it to Android Studio variable

Sorry for the question, it should be simple but I could not make this code work: I get this Json from here: link I use it so that a function draws a polylinea on my map, the function is this: public class DirectionsJSONParser {...
asked by 29.03.2018 / 01:12
1
answer

Problems with json on android

I have a problem when registering a user in my android app In the registry.java I have the following code public class Registrarse extends AppCompatActivity { EditText etnombre, etusuario, etpassword, etedad; Button btn_registrar;...
asked by 09.04.2018 / 16:38
1
answer

Send data with Ajax and Json

I need to work with Ajax and Json. These 2 Codes below work together and they work, it returns the id and the name. <script> function enviarDatos(){ $.ajax({ data:{ id:1, nombre:"fo...
asked by 30.03.2018 / 18:05
2
answers

Pass values from json_encode to variable in javascript

I have a problem when trying to pass the values from one PHP variable to another in javascript. The variable in PHP is an array formulated from a query, I pass that array by a json_encode () and assign it to an array in javascript: var array_e...
asked by 20.03.2018 / 20:51
1
answer

read a .json file in angularjs

Hi I need to read a json file in angular using a service, using the http service app.factory('Expenses', function($http){ var service = {}; service.entries = []; $http.get('data/get_all.json').then(function (data){ service.entr...
asked by 13.02.2018 / 17:05
1
answer

Send float using json

I am trying to send a number with a comma through JSON to save them in a MySQL database through a api rest created in node js. Endpoint code router.post('/', (req, res) => { const sensorData = { id: null, temperatura:...
asked by 04.02.2018 / 21:13
1
answer

How to send an array of javascript to an email either by php or by another technology? [closed]

I have a general arrangement that contains several fixes in which I store the information that has been selected by the user of several steps of a quote, which is the following: var seleccGeneral = [{"Paso 1": selectEmpStar},{"Paso 2": selectE...
asked by 22.12.2017 / 17:31
1
answer

Volley gives me the following error JsonObjectResquest

I'm working with Volley but I get an error when using it in the method. Can anybody help me? Thanks: public void sendResponse(){ RequestQueue requestQueue = Volley.newRequestQueue(this); JsonObjectRequest jsObjectRequest = new...
asked by 17.01.2018 / 13:25