during back formatting from json back to php array, eliminating unnecessary keys. (could be buggy!)