dewski / json_builder

Rails provides an excellent XML Builder by default to build RSS and ATOM feeds, but nothing to help you build complex and custom JSON data structures. JSON Builder is here to help.
http://garrettbjerkhoel.com/json_builder/
MIT License
243 stars 52 forks source link

key names with "@" not allowed #46

Closed maxf closed 11 years ago

maxf commented 11 years ago

{ "@a": 1 } is valid JSON but @a 1 will trigger a syntax error

dewski commented 11 years ago

You can use:

key "@a", 1