Improved JSON dependency implementation