remove prefix and suffix from *.json