title: Decode JSON string in C#
body: <p>I am trying to decode the following string in a xamarin cross platform app</p>
  
  <pre><code>{"body":"test","time":"2017-12-20 14:09:16","type":0}
  </code></pre>
  
  <p>Except I can't find a tutorial that works...</p>
  
  <p>I tried using NewtonSoft.Json but it fails to download and says</p>
  
  <blockquote>
    <p>Install failed. Rolling back...
    Package 'Microsoft.CSharp.4.3.0' does not exist in project 'SocialNetwork.iOS'
    Removing package 'Microsoft.CSharp.4.3.0' from folder 'C:\Users\snip\source\repos\SocialMedia\packages'
    Removed package 'Microsoft.CSharp.4.3.0' from folder 'C:\Users\snip\source\repos\SocialMedia\packages'
    Executing nuget actions took 2.86 sec
    Failed to add reference. The package 'Microsoft.CSharp' tried to add a framework reference to 'Microsoft.CSharp' which was not found in the GAC. This is possibly a bug in the package. Please contact the package owners for assistance.
      Reference unavailable.
    Time Elapsed: 00:00:21.6604873</p>
  </blockquote>