In my first venture into android development, I came across the following need. I need to create a login screen by accessing the one address and capturing the gson's return below. How could I do it?
LOGIN URL: /api/auth/login Method: POST
Da...
I'm trying to use GSON in a Maven EJB project but it gives the following error:
java.lang.NoClassDefFoundError: com/google/gson/Gson
When I test in the main class without going up the server lib works normally.
Has anyone...
Personal I have the following record being returned by a query using SpringData :
page = grupoService.findByNomeStartingWithOrderByNomeAsc(2, pageable);
If I run the following code:
System.out.println(page.getContent().get(0));
I...
I'm using the Kotlin language together with the GSON library to do parse creation / parsing of JSON objestos.
I have the following string that stores a JSON object returned from a server
val jsonString = "{"age":22,"height":1.8,"profession"...
I'm using Gson and need to serialize a class with different date formats:
@TimeStampField(onlyDate = false)
private Timestamp datahora
@TimeStampField(onlyDate = true)
private Timestamp diaLimite
I wanted to get these annotations inside my...
I'm trying to read this file but when I run this error:
Exception in thread "main" java.lang.NullPointerException
at principa.Main.main(Main.java:61)
but I do not know what is null
public class Main {
public static void main(Stri...
I have a problem creating a POJO of this Json (end of question).
Classes > > > >
Main
public class teste {
public static void main(String[] args) {
((Runnable) () -> {
System.out.println("PreExecute");...
I have a problem in my application, when consuming a web service service in Json, the application is closing.
The idea of my application is to consume this web service to validate my email and password, and returning a Json with my user data...
I'm building a program that integrates an online store with another program that controls the physical inventory of a store. Communication is done through HTTP requests that respond in JSON format.
In one of the response JSON, I have a variab...
I'm making an app that uses the google maps directions api, which returns me a json, for example:
{
"geocoded_waypoints" : [
{
"geocoder_status" : "OK",
"place_id" : "ChIJeRLP8gx3GZURImtwaSWGJgY",
"types" :...