본문으로 바로가기

yajl-tcl 1.8.1

category Tcl & Tk/확장 패키지 (Extension Package) 2025. 8. 27. 14:54

홈페이지: https://flightaware.github.io/yajl-tcl/

 

yajl-tcl은 JSON 생성 라이브러리 yajl(https://lloyd.github.io/yajl/)의 Tcl 인터페이스입니다. 

 

This is yajl-tcl, a direct Tcl interface to the yajl JSON generator library. This package is a freely available open source package under the "Berkeley" license, same as Tcl. You can do virtually anything you like with it, such as modifying it, redistributing it, and selling it either in whole or in part. See the file "LICENSE" for complete information.

yajl-tcl was written by Karl Lehenbauer of FlightAware. This company-funded work was generously open-sourced.

#yajl create x -beautify 1
set x [yajl create #auto]

x map_open string type string FeatureCollection string features array_open 

proc json_major_airport {obj icao lat lon} {
    $obj map_open string type string Feature string geometry map_open string type string Point string coordinates array_open number $lon number $lat array_close map_close string properties map_open string label string $icao map_close map_close
}

json_major_airport x KABQ 35.0401944 -106.6091944
json_major_airport x KBUR 34.206667 -118.3586667 

x array_close map_close

puts [x get]

#x reset
x delete
{
	"type": "FeatureCollection",
	"features": [
		{
			"type": "Feature",
			"geometry": {
				"type": "Point",
				"coordinates": [
					-106.6091944,
					35.0401944
				]
			},
			"properties": {
				"label": "KABQ"
			}
		},
		{
			"type": "Feature",
			"geometry": {
				"type": "Point",
				"coordinates": [
					-118.3586667,
					34.206667
				]
			},
			"properties": {
				"label": "KBUR"
			}
		}
	]
}

yajl-tcl-1.8.1.zip
0.48MB

'Tcl & Tk > 확장 패키지 (Extension Package)' 카테고리의 다른 글

Sugar 0.1  (0) 2025.08.27
TclMixer 1.2.3  (0) 2025.08.27
SMARTPACK  (0) 2025.08.27
Extral 2.1.0  (0) 2025.08.27
tcljudy 1.0.1  (0) 2025.08.27