Initial (crappy) json implementation