post no longer wants just an array; copy folder requires object so used json_encode