| Use Case | Command | Description |
|---|---|---|
| π Create a new tree builder | Psych::JSON::TreeBuilder.new |
Initializes a builder for constructing a JSON AST from YAML events |
| π₯ Feed YAML events | builder.accept(event) or builder << event |
Sends parse events (from Psych::Parser) to the builder |
| π¦ Retrieve the JSON AST | builder.root |
Returns the root node of the constructed JSON tree (a Psych::Nodes::Document) |
Psych::JSON::YAMLEvents (from gem psych-5.4.0)π§ Psych::JSON::TreeBuilder is an eventβbased AST builder. Events are sent to an instance of Psych::JSON::TreeBuilder and a JSON AST is constructed.
Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-29 12:56 @216.73.217.111
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format