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...
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...
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 {...
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;...
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...
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...
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...
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:...
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...
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...