Temporary fix for JSON null fields

This commit is contained in:
Ziver Koc 2015-10-07 16:25:59 +00:00
parent cf43992266
commit 0bb193fba3
5 changed files with 71 additions and 25 deletions

View file

@ -75,6 +75,11 @@ public class JSONWriter{
* @param root is the root node
*/
public void write(DataNode root){
if(root == null){
out.print("null");
return;
}
boolean first = true;
switch(root.getType()){
// Write Map