I would probably use it in my next Ruby/Rails project. I think the API Shale provides is pretty sane. Let alone deserializing which is equally important. Serialization/deserialization is such an important part of web development, I have no idea why Rails includes the ancient JBuilder (and very slow since it goes through templating) library, instead of investing in a proper library. compile JSON Schema into Ruby models (compiling XML Schema is a work in progress)Ī quick example so you can get a feel of it:Īddress: Address.new(street: 'Oxford Street', city: 'London') generate JSON and XML Schema from Ruby models serialize data model to JSON, XML or YAML convert JSON, XML or YAML into Ruby data model Hi, I released Shale, a Ruby gem that allows you to parse JSON, YAML and XML and convert it into Ruby data structures, as well as serialize your Ruby data model to JSON, YAML or XML.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |