rails / jbuilder

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

Implement primitive! method #527

Open fhurlbrink opened 2 years ago

fhurlbrink commented 2 years ago

Jbuilder returns objects, arrays and null. But according to RFC 8259, Section 3, also numbers, strings and the literals false and true are valid JSON. The method primitive! enables this.