skip to Main Content

Add new Object to the JSON output

I have a POJO like this: public class Person { public long id; public String someOtherId; public String vollName; public int alter; } I am converting the POJO to JSON using the mixin: @JsonIncludeProperties( { "id", "name", "age", "customFields" }…

VIEW QUESTION

Javascript – On Click function get specific json data

We are displaying JOSN in a for each loop and adding the data to some html. $.ajax({ dataType: "json", url: 'https://***************************', success: function (data) { var html = '<div class="row">'; $.each(JSON.parse(data), function (index, value) { html += '<button onclick="storeVar(this);" value="'…

VIEW QUESTION
Back To Top
Search