Instance Method json(as:) func json<Value>(as type: Value.Type) throws -> Value? where Value : Decodable