Converts config output to a json object