24
Views
2
Comments
convert json to  java ".properties" file
Question

is it possible to convert a json to a java properties file?

The api that i am consuming json in this structure:

{   "data": [   {  "variable": "A",  "value": "a"  },   { "variable": "B",   "value": "b"  } ] }

I wish to convert it to a java properties file in this format:


2019-11-08 14-27-49
Miguel Riso Almeida

Hi @Shum Chin Ning , covert your JSON into a structure, and then you will be able to parse it as you wish.

2026-03-12 06-20-48
KUNDAN CHAUHAN
Champion

HI Shum Chin Ning,

Take a reference from this video,

hope it help you ..

https://youtu.be/4KfuGTxLQBo

Kind Regards,

Kundan Chauhan


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.