Skip to main content

json_text

Function json_text 

Source
pub fn json_text(bytes: &[u8]) -> Option<String>
Expand description

A mapping’s or a layout’s file as text: UTF-8, a byte-order mark dropped, or UTF-16 with its byte-order mark, as Windows PowerShell 5.1 writes what > sends to a file; None for any other bytes, among them UTF-16 with no mark, whose zero bytes no JSON text holds.