title: The type initializer for 'Newtonsoft.Json.Utilities.JavaScriptUtils' threw an exception
body: <p>I am having problems deserialising JSON into its corresponding C# Object.</p>
  
  <p>My server returns valid JSON: <code>{"success":false,"message":"Please enter a valid Email Address."}</code></p>
  
  <p>My server is using a Laravel project and code to return JSON is:</p>
  
  <pre><code>return response()-&gt;json(['success' =&gt; false, 'message' =&gt; 'Please enter a valid Email Address.']);
  </code></pre>
  
  <p>The error given is "The type initializer for 'Newtonsoft.Json.Utilities.JavaScriptUtils' threw an exception."</p>
  
  <p>This happens with various versions of Newtonsoft.Json, including the latest (11.0.2) and going back as far as 7.0.1. Didn't have this error before but I have updated Xamarin Forms today (3.0.0.550146).</p>
  
  <p>Exception info here: <a href="https://pastebin.com/GWPJdj6T" rel="nofollow noreferrer">https://pastebin.com/GWPJdj6T</a>
  Line 81 is call to <code>JsonConvert.DeserializeObject</code></p>
  
  <pre><code>public class RegisterResponse
  {
      [JsonProperty("success")]
      public bool Success { get; set; }
      [JsonProperty("message")]
      public string Messsage { get; set; }
  }
  
  public static async Task&lt;string&gt; RequestAccessCode(string email) {
      try {
          using (var client = new HttpClient()) {
              var response = await client.PostAsync(baseAddress + requestAccess, new FormUrlEncodedContent(new[] {
                      new KeyValuePair&lt;string, string&gt;("email", email.Trim())
              }));
  
              var responseContent = await response.Content.ReadAsStringAsync();
              var result = JsonConvert.DeserializeObject&lt;RegisterResponse&gt;(responseContent);
              return result.Messsage;
          }
      }
      catch (Exception exception) {
              return exception.FormatExceptionInfo(false);
      }
  }
  </code></pre>