rails / jbuilder

Jbuilder: generate JSON objects with a Builder-style DSL
MIT License
4.34k stars 438 forks source link

Sample use in standalone Ruby script #549

Closed dekhaus closed 1 year ago

dekhaus commented 1 year ago

Hi

 Can someone provide a sample Ruby script showing how to use JBuilder outside of Rails or more precisely how to use it in a single Ruby script ?

Thanks Dave

rafaelfranca commented 1 year ago

It is here https://github.com/rails/jbuilder/blob/main/test/jbuilder_test.rb