Raw strings to json

Converting tool to dump a json rather than random strings