Better JSON config handling