Skip to main content

from_sqlite_value

Function from_sqlite_value 

Source
pub fn from_sqlite_value(value: ValueRef<'_>) -> Value
Expand description

Convert a SQLite ValueRef to a JSON Value.

ยงJSON sniffing

This is a raw JSON path with no schema information, so TEXT values are sniffed: text beginning with { or [ is parsed as JSON in this raw JSON path (falling back to the plain string if parsing fails). A stored string that legitimately starts with one of those characters is therefore returned as parsed JSON rather than as the stored string.