use kowito_json::KView;
use kowito_json::arena::Scratchpad;
use kowito_json::scanner::Scanner;
use kowito_json_derive::KJson;
#[derive(Debug, KJson)]
pub struct User {
pub id: i64,
pub name: String,
pub is_active: bool,
}
fn main() {
let json_bytes = br#"{"id": 42, "name": "Kowito", "is_active": true}"#;
let mut scratchpad = Scratchpad::new(1024);
let tape = scratchpad.get_mut_tape();
let scanner = Scanner::new(json_bytes);
scanner.scan(tape);
let _view = KView::new(json_bytes, tape);
}