Answers.Body: <p>Not knowing what version of Craft or Imager-X you're working with my first recommendation would be to do a composer update before adding Imager-X.</p>
  <p>Next, I'd try deleting the 'vendor' directory and composer.lock file and running <code>composer install</code></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-06-14T12:30:47.103Z
Answers.Text: I think I did something like this and have solved the problem. Thanks
Answers.UserDisplayName: JYdigital
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-06-13T11:05:13.067Z
Answers.LastActivityDate: 2023-06-13T11:05:13.067Z
Answers.UserDisplayName: cherrykoda
Body: <pre><code>Error: &quot;https://composer.craftcms.com/p2/aws/aws-sdk-php.json&quot; does not contain valid JSON
  Parse error on line 1:
  ...pball\/6690347bc833&quot;https:\/\/api.github
  ----------------------^
  Expected one of: 'EOF', '}', ':', ',', ']'
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-06-07T00:03:08.097Z
Comments.Text: If you load https://composer.craftcms.com/p2/aws/aws-sdk-php.json in a browser on the same server you're getting that message on, does it load for you? It loads fine and looks like valid JSON for me.
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-06-14T12:31:06.790Z
Comments.Text: Thanks Brad yes it loads. I seem to have solved the problem though.
Comments.UserDisplayName: JYdigital
Tags: <error-message><composer>
Title: Composer error when adding imager-x plugin
ThreadText: # Composer error when adding imager-x plugin
  
  (Asked by: username_0 on 2023-06-06)
  
  ```
  Error: "https://composer.craftcms.com/p2/aws/aws-sdk-php.json" does not contain valid JSON
  Parse error on line 1:
  ...pball\/6690347bc833"https:\/\/api.github
  ----------------------^
  Expected one of: 'EOF', '}', ':', ',', ']'
  
  ```
  
  **Tags:** error-message, composer
  
  > **Comments:**
  > **username_1**: If you load https://composer.craftcms.com/p2/aws/aws-sdk-php.json in a browser on the same server you're getting that message on, does it load for you? It loads fine and looks like valid JSON for me.  
  > **username_0**: Thanks username_1 yes it loads. I seem to have solved the problem though.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2023-06-13. Score: 1 | Accepted answer
  
  Not knowing what version of Craft or Imager-X you're working with my first recommendation would be to do a composer update before adding Imager-X.
  
  Next, I'd try deleting the 'vendor' directory and composer.lock file and running `composer install`
  
  > **Comments:**
  > **username_0**: I think I did something like this and have solved the problem. Thanks  
  
  ---
  
  