Questions tagged as 'json'

0
answers

ValidationSummary Validation in a modal receive Json message

My application has a View Create that is opened via a modal and the Controller that was an ActionResult is a JsonResult returning then Json after the request [HttpPost] .    The Required DataAnnotations of fields work perfectly. Bu...
asked by 05.03.2017 / 03:26
1
answer

How do I read and store the response data from an API?

I got the answer from API from CIELO below, now I'd like to understand how to read and store values. If someone can help me with what key information should I store in the database?    object(stdClass)#2 (3) { ["MerchantOr...
asked by 27.02.2017 / 19:00
0
answers

REST API for converting CSV to JSON

Good morning, I'm currently facing a problem, I need an API that can convert CSV to JSON via REST. I have found several CSV converters for JSON on the web, but they are built for use in the browser and the return on conversions is usually onl...
asked by 03.04.2017 / 15:13
1
answer

Return only the first data of an array in JSON and JAVA

I have a project where I search the database via JSON, to export this data in Excel format. I am adding a new search, but I have a string array, but I can not get the data from the database so that it returns only the first data of that array....
asked by 08.03.2017 / 21:48
0
answers

How to use EF Core with inheritance correctly and capture foreign key objects?

I'm using the Entity Framework Core, and I have a template that uses inheritance. I use the TPH (Table Per Hierarchy) standard that maps me all classes of the same super class in the same table and uses a discriminator column to distinguish them...
asked by 10.03.2018 / 14:57
1
answer

Validate if there is already a registration in the bank before filling out the form

I have the following form: <form class="form-horizontal" action="cadastrar.php" method="GET"> <fieldset> <legend>DADOS CADASTRAIS</legend> <input type=...
asked by 11.04.2017 / 22:47
0
answers

Problems with ajax / json and cross-origin redirect

I have an application, in flask + javascript, that needs to query a url (on a server I do not have access to), however I get the cross-origin redirect error    XMLHttpRequest can not load link . Redirect from ' link ' to ' 'has been blocke...
asked by 15.02.2017 / 17:16
0
answers

Example Login with basic auth authentication using Alamofire?

I'm trying to make a login screen where I use Alamofire to make the request, but with the examples from the Alamofire website itself, it's not working. If someone can help with a sample code, I would appreciate it a lot !! What's the probl...
asked by 06.03.2017 / 22:58
1
answer

Json_econde error parsing special characters from the database (using PDO mysql)

In a database table there are accented words or with ç. When using json_encode in php to send the result to the view, json breaks due to the parser error. What is the best way to handle these characters before calling json_encode? Example of...
asked by 31.01.2017 / 01:42
0
answers

Export Data to FireBase

I would like to export data to my DB FireBase . I have a service created in Visual Studio in C # that creates a list with name and price. I need to export this data to FireBase or export a txt file, if need be, I already do this. Note...
asked by 30.01.2017 / 14:19