converting pickled data to json, to use in non-python projects