``` CREATE TABLE blog ( id TEXT PRIMARY KEY, created_at DATETIME DEFAULT CURRENT_TIMESTAMP,

CREATE TABLE blog (
    id TEXT PRIMARY KEY,
    created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
    content_url TEXT,
    frontmatter JSON,
    slug TEXT UNIQUE,
    title TEXT,
    website_ref_id TEXT,
    FOREIGN KEY (website_ref_id) REFERENCES website(id)
);


I have the given schema in d1 database, I am using the preprare statement as DB.prepare('select * from blog').all() But the stored frontmatter is returning json as string instead of automatically parsing it out as json.

Am I missing something ?
Was this page helpful?