[fix] allow json in env
[fix] remove extra reverse to allow proper precedence
[fix] allow JSON values from environment
Merge branch 'env-json'