Questions tagged as 'json'

1
answer

Save a json file with php inside a bracket and separated by a comma

I need a help in php, I only know the basics in the language and I'm wanting save a data.json file, where the form data is sent via post to a data.php file by ajax. in my code the data.php is as follows: $array = array(); $fp = fopen("dado...
asked by 22.01.2018 / 17:27
1
answer

Send Array to DB

Good afternoon, guys. I'm trying to pass an array that I retrieve from a JSON to DB, but I'm not able to identify Array objects, I think I'm doing something wrong, I've done some tests with foreach but I did not succeed, follow the cod's. HTM...
asked by 27.12.2017 / 19:04
1
answer

How to compress a string for sending in a JSON object field

Hello, I'm developing an API in java, which returns a JSON object. One of the final json fields is long text, of unknown size. The text may or may not contain special characters. I am sending the raw information in a string. But as the...
asked by 05.02.2018 / 15:31
1
answer

Deserialize to an ICollection without the need to create an extra class

Hello. I am using Json.NET to deserialize my object. Today I do the following: JsonConvert.DeserializeObject<ICollection<TModelo>>(stream.ReadToEnd()); Currently I have to create an extra class ( Produtos ) because...
asked by 26.12.2017 / 19:11
1
answer

Comments in JSON in Visual Studio

, the following message appears to me: Comments are not permitted in JSON. Does anyone know how to explain this to me?     
asked by 19.01.2018 / 07:36
1
answer

Save data from an array to a database

I need to write the contents of an array that returned from a Json deserialization (return from a Json with more than one level), follow the line with the method that extracts the array: Departmants dept = new Departmants(); de...
asked by 21.12.2017 / 19:55
0
answers

Doubt: What is the best way to display data in a table?

I'm studying JSP and Servlets and also JQuery and I came across a situation. Location: Imagine that you are going to display a product table where 20 items per page will be displayed for example. With that, you have that famous operator...
asked by 02.02.2018 / 21:03
1
answer

How would you do to convert this Json to Objects in C # [duplicate]

How to convert this JSON to a C # object? { "Maquinas":{ "Maquina1":[ { "comando":"Get", "enderecoip":"192.168.254.221", "port":"3000", "usuario":"teste", "Senha":...
asked by 04.01.2018 / 17:22
1
answer

Show data coming from a JSON in a listview

namespace Monitorizacao.UI.Pages { public class Post { public int Id { get; set; } public string Title { get; set; } public string Body { get; set; } } public partial class TestAPIPage : ContentPage {...
asked by 20.12.2017 / 18:55
0
answers

How to return Json text from BD to ArrayList in Java

I'm having trouble converting a set of Json text from the database to a set of ArrayList text in Java. Here is the code below: Model.java public class Sala { private String professor; private ArrayList<Aluno> alunos; /...
asked by 30.11.2017 / 22:41