You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: json_exports_dependency.rs
    path of file: ./repos/rspack/crates/rspack_plugin_json/src
    
    the code of the file until where you have to start completion: use json::JsonValue;
use rspack_core::{
  AsContextDependency, AsModuleDependency, Dependency, DependencyId, DependencyTemplate,
  ExportNameOrSpec, ExportSpec, ExportsOfExportsSpec, ExportsSpec, ModuleGraph, TemplateContext,
  TemplateReplaceSource,
};
#[derive(Debug, Clone)]
pub struct JsonExportsDependency {
  id: DependencyId,
  data: JsonValue,
}

impl JsonExportsDependency {
  pub fn new(data: JsonValue) -> Self {
    Self {
      data,
      id: DependencyId::new(),
    }
  }
}

impl Dependency for JsonExportsDependency {
  fn id(&self) -> &rspack_core::DependencyId {
    &self.id
  }

  fn dependency_debug_name(&self) -> &'static str {
    "JsonExportsDependency"
  }

  fn get_exports(&self, _mg: &ModuleGraph) -> Option<ExportsSpec> {
    Some(ExportsSpec {
      exports: get_exports_
    
fn get_exports_from_data(data: &JsonValue) -> Option<ExportsOfExportsSpec> {
  let ret = match data {
    JsonValue::Null
    | JsonValue::Short(_)
    | JsonValue::String(_)
    | JsonValue::Number(_)
    | JsonValue::Boolean(_) => {
      return None;
    }
    JsonValue::Object(obj) => ExportsOfExportsSpec::Array(
      obj
        .iter()
        .map(|(k, v)| {
          ExportNameOrSpec::ExportSpec(ExportSpec {
            name: k.into(),
            can_mangle: Some(true),
            exports: get_exports_from_data(v).map(|item| match item {
              ExportsOfExportsSpec::True => unreachable!(),
              ExportsOfExportsSpec::Null => unreachable!(),
              ExportsOfExportsSpec::Array(arr) => arr,
            }),
            ..Default::default()
          })
        })
        .collect::<Vec<_>>(),
    ),
    JsonValue::Array(arr) => {
      if arr.len() > 100 {
        return None;
      }
      ExportsOfExportsSpec::Array(
        arr
          .iter()
          .enumerate()
          .map(|(i, item)| {
            ExportNameOrSpec::ExportSpec(ExportSpec {
              name: format!("{i}").into(),
              can_mangle: Some(true),
              exports: get_exports_from_data(item).map(|item| match item {
                ExportsOfExportsSpec::True | ExportsOfExportsSpec::Null => unreachable!(),
                ExportsOfExportsSpec::Array(arr) => arr,
              }),
              ..Default::default()
            })
          })
          .collect::<Vec<_>>(),
      )
    }
  };
  Some(ret)
}