Not fond of JSON auto detection, but I don't have a suggestion for an alternative way of setting this through the environment. 
If you think it's the way to go then lgtm.