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
244 stars 52 forks source link

key names with "@" not allowed #46

Closed maxf closed 10 years ago

maxf commented 10 years ago

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

dewski commented 10 years ago

You can use:

key "@a", 1