added socket json runner in Java api