Questions tagged as 'json'

1
answer

Write data in API RestFul Laravel through JSON

I'm trying to write data to a Restful API in Laravel via a JSON, but I can not write more than one group of information when the file has more than one. "data": [ { "client_id": "3", "veiculo_id": "3", "carreta1_id": "3", "carre...
asked by 03.10.2018 / 02:07
1
answer

Error when displaying json in Angular 6

I can not display json list in html I have json in component.ts component.ts import { Component, Input, Output, EventEmitter } from '@angular/core'; import { BaseComponent } from '../../base.component' import { Atividade } from '../../...
asked by 27.09.2018 / 21:38
1
answer

JAX WS RS JPA does not return oneToMany relation in JSON

In my relationship, a Call is related to many Histories. The key of the Call is present in every History. When querying a History for the code, there is a @ManyToOne relation that returns the Call to which the history belongs. When consulting th...
asked by 10.07.2018 / 03:05
1
answer

Prohibit direct access to a URL (JS) [duplicate]

I made a website, and in it I need to prevent it from entering it by URL access, but I did not create a session in PHP because the login is validated with token by jwt with js. Is there any secure way to just let anyone who logged in to the...
asked by 22.05.2018 / 19:49
1
answer

Error 405 - "Request not supported method"

The method you are sending when clicking the button is a GET but in my JavaScript step as method POST and in Controller it expects to receive a POST method as well. My JS: function criaCategoria() { let tituloC...
asked by 22.10.2018 / 15:54
2
answers

Return only some JSON fields in the request response (Nodejs + Mongoose)

exports.listarProfissionais = function(request, response) { if (request.get("Authorization") == "test") { ProfissionalSchema.find({}, function(erro, profissionais) { if (erro) response.json({"erro":...
asked by 15.02.2018 / 02:07
1
answer

Problem in return json php

I have a problem with my return json when I try to access the data it returns me object object follow my code PHP $cep = $_POST['cep']; $consulta = new Cep(); $cepCliente = $consulta->getCep($...
asked by 28.12.2017 / 20:33
2
answers

Return JSON php TRUE or FALSE

Good morning, I'd like my JSON filtering to look also if what I searched for indicates "true" or "false." I use this array to search the file: <?php session_start(); error_reporting(0); //função para filtrar os anúncios function filtroAn...
asked by 30.07.2018 / 16:39
1
answer

Doubt in unescape encryption

I have this script on the site, but this short excerpt is encrypted and I wanted to change it because it is an email to contact. When I change this part that is encrypted, the text gets scrambled and meaningless; how would I have to proceed to m...
asked by 15.07.2017 / 23:18
1
answer

Query with JSON return

What is the most practical and safe way to provide an EXTERNAL query to my database and return a JSON? PHP     
asked by 12.04.2018 / 18:16