added .json format to the href generator to prevent unacceptable error from api. Added gsub to replace the . in the old org.polar.. ID's