and actually switching to json

fixing compile errors.. still figuring out how these tools work.