Added legacy JSON implementation. Will be replaced later. Right now we need it for a jumpstart with testing.