json_quote_chararray: Always return a newly talloced array