fix #1, the key should be copied because the buffer content may change when parsing large json file