package com.miguelgaeta.android_message_parser;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

public class AppActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.app_activity);
    }
}

@@ -116,16 +116,218 @@
 ctivity;
+%0Aimport android.util.Log;%0A%0Aimport com.miguelgaeta.message_parser.MessageParser;%0Aimport com.miguelgaeta.message_parser.MessageParserImplFastJson;%0A%0Aimport java.io.IOException;%0Aimport java.io.StringReader;
 %0A%0Apublic
@@ -536,16 +536,1088 @@
 tivity);
+%0A%0A        final TestModel testModel = new TestModel();%0A%0A        try %7B%0A%0A            final MessageParser reader = new MessageParserImplFastJson(new StringReader(%22%7B%5C%22test%5C%22:%5C%22Bob%5C%22, %5C%22test_again%5C%22:13%7D%22));%0A%0A            reader.beginObject();%0A%0A            while (reader.hasNext()) %7B%0A%0A                switch (reader.nextName()) %7B%0A%0A                    case %22test%22:%0A                        testModel.test = reader.nextString();%0A                        break;%0A                    case %22test_again%22:%0A                        testModel.test_again = reader.nextInt();%0A                        break;%0A                %7D%0A            %7D%0A%0A            reader.endObject();%0A            reader.close();%0A%0A            Log.e(%22MessageParser%22, %22Parsed: %22 + testModel);%0A%0A        %7D catch (IOException e) %7B%0A%0A            Log.e(%22MessageParser%22, %22Error%22, e);%0A        %7D%0A    %7D%0A%0A    public static class TestModel %7B%0A%0A        private String test;%0A%0A        private int test_again;%0A%0A        @Override%0A        public String toString() %7B%0A%0A            return %22test: %22 +  test + %22, test_again: %22 + test_again;%0A        %7D
 %0A    %7D%0A%7D

Add some basic example code.