Skip to content

Commit

Permalink
fixing build properties, updating examples
Browse files Browse the repository at this point in the history
  • Loading branch information
shiffman committed Mar 13, 2014
1 parent 405ae3b commit 783118e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/get/get.pde
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import httprocessing.*;
import http.requests.*;

public void setup()
{
Expand All @@ -9,4 +9,4 @@ public void setup()
get.send();
println("Reponse Content: " + get.getContent());
println("Reponse Content-Length Header: " + get.getHeader("Content-Length"));
}
}
4 changes: 2 additions & 2 deletions examples/jsonget/jsonget.pde
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import httprocessing.*;
import http.requests.*;

public void setup()
{
Expand All @@ -9,7 +9,7 @@ public void setup()
get.send(); // program will wait untill the request is completed
println("response: " + get.getContent());

JSONObject response = JSONObject.parse(get.getContent());
JSONObject response = parseJSONObject(get.getContent());
println("status: " + response.getString("status"));
JSONArray boxes = response.getJSONArray("data");
println("boxes: ");
Expand Down
2 changes: 1 addition & 1 deletion examples/post/post.pde
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import httprocessing.*;
import http.requests.*;

public void setup()
{
Expand Down
2 changes: 1 addition & 1 deletion resources/build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ classpath.libraries.location=${sketchbook.location}/libraries
# (3)
# Set the java version that should be used to compile your library.

java.target.version=1.7
java.target.version=1.6


# Set the description of the Ant build.xml file.
Expand Down

0 comments on commit 783118e

Please sign in to comment.