title: How to get annotation class name, attribute values using reflection
body: <p>I know if we know the annotation class, we can easily get the specific annotation and access its attribute. For example:</p>
  
  <pre><code>field.getAnnotation(Class&lt;T&gt; annotationClass) 
  </code></pre>
  
  <p>Which will return a reference of specific annotation interface, so you can easily access its values.</p>
  
  <p>My question is if I have no pre knowledge about the particular annotations class. I just want to use reflection to get all the annotation class name and their attributes at run-time for the purpose of dumping the class information for example as a JSON file. How can I do it in an easy way.</p>
  
  <pre><code>Annotation[] field.getAnnotations();
  </code></pre>
  
  <p>This method will only return dynamic proxies of the annotation interfaces.</p>