scan_json

Function scan_json 

Source
pub fn scan_json(bytes: &[u8]) -> u8
Expand description

Evaluates buffer with JSON state machine scanner. Returns 1 for single JSON document, 2 for NDJSON / JSONLines, 0 for not JSON.