Skip to content

Instantly share code, notes, and snippets.

@madonnelly
madonnelly / GSONFileTest.java
Created November 16, 2011 22:01
Converting a file to JsonObject with GSON
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
public class GSONFileTest {
public static void main(String[] args)