Skip to content

Tag: json

How to get customize JSON object response in spring boot

I need to need to get customized JSON object rather than default one in Spring Boot. I could successfully get default response but I need to customize as below. Some objects needed to be converted to array and some fields should be removed. Actual Response Expected Response Changes Service Class Implementatio…

change the json object value

I have a json object like above and i want to change apiInvokerPublicKey’s value i did not find a method in gson so how can i change it? EDIT: I used addProperty method from gson but it changes whole “onboardingInformation” i just want to change “apiInvokerPublicKey” Answer You c…

How to Parse Json containing Array of Arrays Java

I have a Json which contains array of Arrays, now I need to parse that Json and count the elements, and after reaching certain limit I need to put it into result Json. I was able to parse till one level and count the elements. How can I parse multiple levels and get the object in same format: here is

Convert response to JSON/String and Write to a File

I’m new on java and node, so after 2 days trying to do this… i wrote this question. I’m using a git (https://github.com/gigobyte/HLTV) and trying to make files with the responses i get from this api, but all i got so far is to write the results in the console. Is there any way to convert it …