🐇 RabbitJSON v2.1.1

En Gelişmiş Classic ASP JSON Parser

Daha hızlı, daha akıllı, daha temiz. aspJSON.com ve rcdmk/aspJSON'u tamamen geride bırakır.

41KB
Boyut
104
Test
~150ms
Parse

✨ Öne Çıkan Özellikler

🎯

Path-based Erişim

user.profile.settings.theme gibi nokta notasyonu ile kolay veri erişimi

🌐

HTTP/HTTPS Yükleme

JSON verilerini doğrudan URL'lerden yükleyip parse edin

🔤

Unicode & Emoji

Türkçe karakterler ve emojiler tam destek

⚙️

Configuration System

maxDepth, strictMode gibi gelişmiş yapılandırma seçenekleri

🛡️

Gelişmiş Hata Yönetimi

HasError(), LastError, ClearError() ile kapsamlı hata kontrolü

💎

Default Value Support

GetValue ile default değer desteği ve güvenli veri erişimi

📊 Benchmark Karşılaştırması

Test Kategorisi
RabbitJSON
aspJSON (rcdmk)
aspjson.com
Yerel JSON Parse
✅ ~150ms
✅ ~200ms
✅ ~180ms
HTTP JSON Yükleme
✅ ~500ms
❌ Desteklenmiyor
❌ Desteklenmiyor
Path Tabanlı Erişim
✅ user.name
❌ Manuel kod
❌ Manuel kod
Unicode Desteği
✅ Tam destek
❌ Sınırlı
❌ Kısmi
Dosya Boyutu
✅ 41 KB
✅ ~25 KB
✅ ~30 KB

🧪 Test Sistemi

📈

Kapsamlı Fonksiyon Testleri

104 farklı test senaryosu ile tüm fonksiyonları test eder

Performans & Yük Testleri

Gerçek zamanlı performans ölçümü ve büyük veri testleri

🧪

Interactive Sample Runner

17 farklı örnek kodu canlı test edin. Kod görüntüleyici + çalışan sonuç

🎯 Interactive Runner
Parse • HTTP Load • Arrays • Loops • Real-world Apps

📄 Test Verisi

Testlerde kullanılan örnek JSON dosyası:

📁 sample-data.json (7.6 KB)

📚 API Referansı

🔧 Core Methods

Parse(jsonString)

JSON string'ini parse eder

json.Parse("{\"name\":\"John\"}")

GetValue(path, default)

Path ile veri erişimi

json.GetValue("user.name", "")

SetValue(path, value)

Path ile veri yazma

json.SetValue("user.age", 25)

📄 Output & Utils

Stringify(obj, indent)

Formatted JSON output

json.Stringify(data, 2)

HasValue(path)

Path varlık kontrolü

json.HasValue("user.email")

RemoveValue(path)

Veri silme işlemi

json.RemoveValue("temp")

Advanced

New RabbitJSON

Factory method

Set json = CreateRabbitJSON()

Config(key, value)

Yapılandırma ayarları

json.Config("maxDepth") = 50

Error Management

HasError(), LastError, ClearError()

json.HasError()

⚡ Hızlı Başlangıç

Set json = New RabbitJSON
json.Parse("{\"users\":[{\"name\":\"John\",\"age\":30}]}")
userName = json.GetValue("users.0.name", "Unknown")
Response.Write userName  ' Output: John

💡 Kullanım Örnekleri


<%
' JSON instance oluştur
Set json = New RabbitJSON

' JSON parse et - array örneği ile
json.Parse "{""kullanicilar"":[{""ad"":""Mehmet"",""yaş"":30},{""ad"":""Ayşe"",""yaş"":25}]}"

' Array verilerine erişim
Response.Write json.GetValue("kullanicilar.0.ad", "Bilinmiyor")  ' Çıktı: Mehmet
Response.Write "<br>"
Response.Write json.GetValue("kullanicilar.1.ad", "Bilinmiyor")  ' Çıktı: Ayşe
Response.Write "<br>"
Response.Write json.GetValue("kullanicilar.0.yaş", 0) ' Çıktı: 30

Set json = Nothing
%>
🧪 Daha Fazla Örnek - Interactive Test Runner

17 farklı örnek kodu canlı test edin • Kod görüntüleyici + çalışan sonuç

📦 İndir & Kullan

🚀

RabbitJSON

Classic ASP için en gelişmiş JSON parser

Tek dosya, sıfır bağımlılık. Hemen kullanmaya başlayın!

Boyut
41 KB
Test
104
Parse
~150ms
License
MIT
  • Path-based erişim (user.profile.name)
  • HTTP/HTTPS URL'den yükleme
  • Unicode ve emoji tam desteği
  • Yüksek performans optimizasyonu

📋 Kurulum Rehberi

1

Dosyayı İndir

RabbitJSON.v2.asp dosyasını projenizin klasörüne kaydedin

2

Include Et

ASP sayfanızın başında include edin:

<!--#include file="/your-path/RabbitJSON.v2.asp" -->
3

Kullanmaya Başla

JSON instance oluşturup kullanın:

Set json = New RabbitJSON

Hızlı Başlangıç


' Sample JSON - Array örneği
Dim JSON_SAMPLE
	JSON_SAMPLE = "{""kullanicilar"":[" & _
	              "{""ad"":""Ahmet"",""yas"":25,""sehir"":""İstanbul""}," & _
	              "{""ad"":""Fatma"",""yas"":30,""sehir"":""Ankara""}" & _
	              "]}"

' JSON instance oluştur
Set JSON = New RabbitJSON

' JSON parse et
JSON.Parse(JSON_SAMPLE)

' Array verilerine erişim
kullanici1Adi = JSON.GetValue("kullanicilar.0.ad", "Bilinmiyor")
kullanici1Yas = JSON.GetValue("kullanicilar.0.yas", 0)
kullanici2Adi = JSON.GetValue("kullanicilar.1.ad", "Bilinmiyor")
kullanici2Sehir = JSON.GetValue("kullanicilar.1.sehir", "Bilinmiyor")

Response.Write "👤 " & kullanici1Adi & " (" & kullanici1Yas & " yaş)<br>"
Response.Write "👤 " & kullanici2Adi & " (" & kullanici2Sehir & ")<br>"

Set JSON = Nothing