Add main activity + Add support for json encoding