Skip to main content

json_valid

Function json_valid 

Source
pub fn json_valid(input: &str, flags: Option<u8>) -> i64
Expand description

Validate JSON text under flags compatible with SQLite json_valid.

Supported flags:

  • 0x01: strict RFC-8259 JSON text
  • 0x02: JSON5 text
  • 0x04: superficial JSONB check
  • 0x08: strict JSONB parse