Skip to content

Commit

Permalink
add check for JSON Array
Browse files Browse the repository at this point in the history
  • Loading branch information
egru committed Nov 9, 2015
1 parent 89ab4d9 commit 862be38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 4 additions & 1 deletion ContentTypeConverter/src/main/java/burp/Utilities.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package burp;

import com.google.gson.Gson;
import org.json.JSONArray;
import org.json.JSONObject;
import org.json.JSONTokener;
import org.json.XML;
import org.w3c.dom.*;

Expand Down Expand Up @@ -326,7 +328,8 @@ public Node renameNode(Node n, String namespaceURI, String qualifiedName) throws
Boolean success = true;

try {
JSONObject json = new JSONObject(body);
Object item = new JSONTokener(body).nextValue();
Object json = item;

xml.append(XML.toString(json));
xml.append("</root>");
Expand Down
5 changes: 0 additions & 5 deletions ContentTypeConverter/target/MANIFEST.MF

This file was deleted.

0 comments on commit 862be38

Please sign in to comment.