FIX: turning array into json caused \/ to show up in paths. these are not necessary, so they are now removed after json_encode is called, and before saving