LattE to JSON and vice versa converter