Questions tagged as 'jsonobject'

1
answer

Java: Convert point-delimited strings to nested JSON

I have a lot of attributes coming as dot-delimited strings like "company.id", "company.address.number", "user.name", "isAtive", and I need to create a nested JSON with their respective values. These attributes and values are in a HashMap. Not...
asked by 12.07.2018 / 19:40
1
answer

Go through an array of JSON objects in Android Studio

I get the following JSON link [{"ProdutosidProduto":"1","Produtostipo":"mp","Produtosmodelo":"F540 2 BAN.PNEU. 100 X 60","Produtosbandejas":"2","Produtospeso":"0","Produtosprensagem":"0","ProdutosprecoUnitario":"6500","Produtoscomprimento":"10...
asked by 12.12.2018 / 14:22
1
answer

Update v-for in Vue.js

Hey guys, I have a slight problem here in my Vue.js. I have a variable user.activeItems , in HTML I give a v-for this variable, to show the active items, as follows: <div class="item-container" v-for="(item, index) in user.activeItems...
asked by 28.10.2018 / 20:00
1
answer

How to manipulate a Json object before returning to the API

Hello I'm using this method in my controller: @GetMapping(value="/{id}/perfil", produces = MediaType.APPLICATION_JSON_VALUE) public String carregarPerfilUsuario(@PathVariable("id") Long id, HttpServletResponse response) throws IOException {...
asked by 15.10.2018 / 03:49
1
answer

Problems adding JsonObject to JsonArray

import javax.json.Json; import javax.json.JsonArray; import javax.json.JsonObject; import javax.json.JsonValue; ... JsonObject object = Json.createObjectBuilder().build(); JsonArray array = Json.createArrayBuilder().build(); JsonA...
asked by 16.04.2018 / 17:31