@Test public void testMethodEncoding() throws Exception { AnnotatedMethodsInClass clazz = new AnnotatedMethodsInClass(); JSONAnnotationEncoder encoder = new JSONAnnotationEncoder(); String json = encoder.encode(clazz); TestCase.assertEquals("{\"value\":\"myvalue\",\"someOtherValue\":\"other\"}", json); }
public String encode(Object result) throws JSONException { StringBuilder builder = new StringBuilder(); encode(result, builder, null); return builder.toString(); }
JSONAnnotationEncoder { public String encode(Object result) throws JSONException { StringBuilder builder = new StringBuilder(); encode(result, builder, null); return builder.toString(); } }
JSONAnnotationEncoder { public String encode(Object result) throws JSONException { StringBuilder builder = new StringBuilder(); encode(result, builder, null); return builder.toString(); }  }
JSONAnnotationEncoder { public String encode(Object result) throws JSONException { StringBuilder builder = new StringBuilder(); encode(result, builder, null); return builder.toString(); }  String encode(Object result); @SuppressWarnings("unchecked") void encode(Object result, StringBuilder builder, JSON annotation); }
JSONAnnotationEncoder { public String encode(Object result) throws JSONException { StringBuilder builder = new StringBuilder(); encode(result, builder, null); return builder.toString(); }  String encode(Object result); @SuppressWarnings("unchecked") void encode(Object result, StringBuilder builder, JSON annotation);  }