title: Creating a Facebook.JsonArray object from a string, for testing purposes
body: <p>I'm using the <a href="http://csharpsdk.org/" rel="nofollow">Facebook C# SDK</a> in my project and for testing purposes would like to be able to stub out the <code>FacebookClient</code> and insert my own fake client which will return pre-defined responses to Facebook API calls (I'm only calling the <code>FacebookClient.Get</code> method in my application). Achieving this is pretty easy using a factory pattern and a configurable StructureMap setup.</p>
  
  <p>Apart from one thing...</p>
  
  <p>My fake <code>FacebookClient</code> needs to return <a href="https://github.com/facebook-csharp-sdk/facebook-csharp-sdk/blob/master/Source/Facebook/SimpleJson.cs#L80" rel="nofollow"><code>Facebook.JsonArray</code></a> objects.</p>
  
  <p>I've been sifting through the SDK source code, and can see that the <a href="https://github.com/facebook-csharp-sdk/facebook-csharp-sdk/blob/master/Source/Facebook/SimpleJson.cs#L473" rel="nofollow"><code>SimpleJson</code></a> class can be used to create <code>JsonArray</code> objects. However it is marked as internal, unless I start messing around and rebuilding the SDK.</p>
  
  <p>Is there a simpler way?</p>