pub fn to_v8<'a, T>(
    scope: &mut HandleScope<'a>,
    input: T
) -> Result<Local<'a, Value>> where
    T: Serialize