JSON 文字列をパースしてハンドル取得
json_load "text"
(プラグイン / モジュール : iron_json.hsp)
JSON テキストをパースして整数ハンドルを返します。
失敗時は -1。
例:
hid = json_load("{\"name\":\"Alice\",\"age\":30}")
if hid >= 0 {
mes json_str(hid, "name")
json_release hid
}
| json_release | ハンドルを解放 | (iron_json.hsp) |
| json_str | JSON 文字列値の取得 | (iron_json.hsp) |
| json_int | JSON 整数値の取得 | (iron_json.hsp) |
| プラグイン / モジュール | iron_json.hsp |
| バージョン | 1.0 |
| 作成日 | 2026-04-13 |
| 著作者 | IronHSP / iron_json |
| URL | https://github.com/inovia/IronHSP |
| 備考 | iron_json.hsp は hspjson.dll を HSP3 から扱いやすくするラッパです。
出力 var の sdim を内部で自動化し、defcfunc 形式で値を返すので 1 行で取得できます。 #include "iron_json.hsp" 依存: hspjson.dll を実行ファイルと同じディレクトリに配置。 |
| タイプ | 拡張命令 |
| グループ | iron_json |
| 対応環境 |
|
| hs ファイル | hsphelp\iron_json.hs |