Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Psych が生成した AST を JSON にダンプしたい。これどうやってするの?
gem 'psych' require 'psych' require 'json' ast = Psych.parse_stream("me: 1"); p ast
ast.to_jsonJSONツリーが表示されません。
ast.to_json