C# code for conversion from ig (JSON) files