This format really makes you go out of your way when trying to use this as JSON. You have to write finders to match the KVPs you’re interested in instead of just doing something like:
var ddl = json[‘jdbc.zuul.generate.ddl’];
Conversely, The properties representation is rendered as such:
#Generated from Zuul with parameters: name=app-data-config, environment=prod
#Tue Nov 20 13:26:08 CST 2012
jdbc.zuul.generate.ddl=none
jdbc.zuul.password=ENC(GsC6gO78e6ShyGYrD6k05tkgNdioeR0K)
jdbc.zuul.url=jdbc\:h2\:file\:zuul-qa
jdbc.zuul.username=zuul
Note the ENC(garbage) to denote encrypted properties. This was mainly done to make it compatible with Jasypt.
I was thinking about doing something similar for the JSON format. What do you guys think about this:
Example:
This format really makes you go out of your way when trying to use this as JSON. You have to write finders to match the KVPs you’re interested in instead of just doing something like:
Conversely, The properties representation is rendered as such:
Note the ENC(garbage) to denote encrypted properties. This was mainly done to make it compatible with Jasypt.
I was thinking about doing something similar for the JSON format. What do you guys think about this:
/settings.json:
I don’t particularly like the ENC(encryptedValue) convention but it keeps the data structure simple.