add keys for each json record output by removing array_values function