Do not use deprecated APIs

Bug:
Change-Id: I1dfd1f71377979a66eb79b0fb0725eb587187c26
diff --git a/Common/src/com/googlecode/android_scripting/jsonrpc/JsonBuilder.java b/Common/src/com/googlecode/android_scripting/jsonrpc/JsonBuilder.java
index 1b82dd9..26be011 100644
--- a/Common/src/com/googlecode/android_scripting/jsonrpc/JsonBuilder.java
+++ b/Common/src/com/googlecode/android_scripting/jsonrpc/JsonBuilder.java
@@ -229,8 +229,8 @@
     private static JSONObject buildJsonAudioState(AudioState data)
             throws JSONException {
         JSONObject state = new JSONObject();
-        state.put("isMuted", data.isMuted);
-        state.put("AudioRoute", AudioState.audioRouteToString(data.route));
+        state.put("isMuted", data.isMuted());
+        state.put("AudioRoute", AudioState.audioRouteToString(data.getRoute()));
         return state;
     }