java properties to json

后端 未结 10 1611
情书的邮戳
情书的邮戳 2020-12-13 18:06

Is there an easy way to convert properties with dot notation to json

I.E

server.host=foo.bar
server.port=1234

TO

{
         


        
10条回答
  •  孤街浪徒
    2020-12-13 18:42

    Look at this https://github.com/nzakas/props2js. You can use it manually or fork and use in your project.

提交回复
热议问题