Reads credentials from JSON