read-json for credentials