json_str

JSON 文字列値の取得

json_str hid, "path"

(プラグイン / モジュール : iron_json.hsp)

解説

指定パスの文字列値を返します (defcfunc)。
パスは "name", "user.email", "tags[2]" 形式。

例:
  s = json_str(hid, "address.city")

サンプル逆引き (3)

sample_cam_ai.hsp
sample_json.hsp
sample_weather.hsp

情報

プラグイン / モジュールiron_json.hsp
バージョン1.0
作成日2026-04-13
著作者IronHSP / iron_json
URLhttps://github.com/inovia/IronHSP
備考iron_json.hsp は hspjson.dll を HSP3 から扱いやすくするラッパです。
出力 var の sdim を内部で自動化し、defcfunc 形式で値を返すので
1 行で取得できます。

#include "iron_json.hsp"

依存: hspjson.dll を実行ファイルと同じディレクトリに配置。
タイプ拡張命令
グループiron_json
対応環境
  • その他 : Win32 / Win64
hs ファイルhsphelp\iron_json.hs