import net.sf.json.JSONObject;
import mpi.*;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		getLocation();

	}
	
	public static double[] getLocation(){
		JSONObject entry=new JSONObject();//http://docs.oracle.com/javaee/7/api/javax/json/JsonObject.html
	    entry.put("target", "course");
	    entry.put("location", "[111,222]");
	    
	    System.out.println(entry.getJSONArray("location"));
		return null;
	}

}

@@ -39,16 +39,34 @@
 mpi.*;%0A%0A
+import java.io.*;%0A
 public c
@@ -159,27 +159,24 @@
  stub%0A%09%09
-getLocation
+readFile
 ();%0A%0A%09%7D%0A
@@ -217,10 +217,58 @@
 ion(
+String str)%7B%0A%09%09%0A%09%09@SuppressWarnings(%22deprecation%22
 )
-%7B
 %0A%09%09J
@@ -298,16 +298,19 @@
 NObject(
+str
 );//http
@@ -377,157 +377,535 @@
     
-entry.put(%22target%22, %22course
+System.out.println(entry.getJSONObject(%22json%22).getJSONObject(%22coordinates%22).getJSONArray(%22coordinates
 %22)
+)
 ;%0A%09
-    entry.put(%22location%22, %22%5B111,222%5D%22);%0A%09    %0A%09    System.out.println(entry.getJSONArray(%22l
+%09return null;%0A%09%7D%0A%09%0A%09public static void readFile()%7B%0A%09%09try%7B%0A%09%09%09BufferedReader br = new BufferedReader(new FileReader(%22data/tinyTwitter.json%22));%0A%09%09%09int count = 0;%0A%09%09%09while(br.ready())%7B%0A%09%09%09%09String str = br.readLine();%0A%09%09%09%09if(str.equals(%22%5B%22)%7C%7Cstr.equals(%22%5D%22))%7B%0A%09%09%09%09%09continue;%0A%09%09%09%09%7D%0A%09%09%09%09System.out.print(count+%22:%22);%0A%09%09%09%09getL
 ocation
-%22)
+(str
 );%0A%09%09
-return null;
+%09%09count++;%0A%09%09%09%7D%0A%09%09%09br.close();%0A%09%09%7D%0A%09%09catch(Exception ee)%7B%0A%09%09%09ee.printStackTrace();%0A%09%09%7D
 %0A%09%7D%0A

Read json from file