get name and ip from given json string txt