Modified json-promise usage pattern.