Most voted "jsonobject" questions
8 questions
Sort by count of
-
3
votes1
answer40
viewsJava: Convert point-delimited strings to nested JSON
I have a lot of attributes coming as point-delimited strings like "company.id", "company.address.number", "user.name", "isAtive", and I need to create a nested JSON with its respective values. These…
-
2
votes1
answer560
viewsRead API return on a Jsonobject in case of errors in the URL
I am trying to consume a weather forecast API (https://openweathermap.org/current) in Java but I have a question regarding the return of JSONObject. I’m using the following code to generate the…
-
0
votes1
answer103
viewsProblems adding Jsonobject to Jsonarray
import javax.json.Json; import javax.json.JsonArray; import javax.json.JsonObject; import javax.json.JsonValue; // código JsonObject object = Json.createObjectBuilder().build(); JsonArray array =…
-
0
votes1
answer135
viewsHow to manipulate a Json Object before returning to the API
Hello I have this method in my controller: @GetMapping(value="/{id}/perfil", produces = MediaType.APPLICATION_JSON_VALUE) public String carregarPerfilUsuario(@PathVariable("id") Long id,…
-
0
votes1
answer65
viewsJSON data return without spacing
I have a class that has a single method to make a request for data that are in JSON format and return a single "fantasy" field that in my case is stored in the Company name variable. This class…
-
0
votes0
answers27
viewsRemove element from inside an object
I was needing a help with object manipulation, I have this simple html with a form and a table where are listed the form entries that will be sent to the database, In this activity I unfortunately…
-
-1
votes1
answer420
viewsBrowse an array of JSON objects in Android Studio
I receive the following JSON link [{"ProdutosidProduto":"1","Produtostipo":"mp","Produtosmodelo":"F540 2 BAN.PNEU. 100 X…
-
-1
votes2
answers62
viewsSeparate and print Object items in HTML
I have this script: var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { var txt = this.responseText; var obj =…