Added parser

Added parser for socket commands using the org.json library