Transform SMQ-like files into JSON format