The general type-safe interface for parsing JSON is to invoke T.from_json on a ... require "json" json_text = %([1, 2, 3]) Array(Int32).from_json(json_text) ...
確定! 回上一頁