title: Reflection Permission problems when using the GSON library in a applet
body: <p>I'm writing an Applet that makes some JSON-RPC calls. I'm using the Google JSON library (GSON) to cast the response JSON into a class. Thsi seems to work fine as is but when I use this code in my Applet, I'm hit with a <code>java.lang.reflect.reflectpermission</code>. From what I  read on <a href="https://stackoverflow.com/questions/2213734/using-gson-library-in-gwt-client-code/2260864#2260864">this thread</a> on SO, it seems that since GSON uses Reflection, I cannot use it in Applets unless I explicitly modify the security policy. How can I get around this? I've created a bunch of classes in my application and was using the <code>Gson.fromJson</code> method to cast it into the class. Is there any way to achieve the same functionality without having to re-write half my code.</p>
  
  <p>(The complexity of dealing with JSON in Java seems to be in a league of its own!)</p>
  
  <p>Thanks in advance guys.</p>