Registry / serialization / jsonapi-serializable

jsonapi-serializable

JSON →
library0.3.1rbrubygemsunverified

Powerful DSL for building resource classes - efficient and flexible rendering.

gem install jsonapi-serializable
INSTALL
IMPORT
SIG · JSONAPI-SERIALIZAB
J
jsonapi-serializable
serializationrubyv0.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JSONAPI::Serializable
require 'jsonapi/serializable'

Define a resource class and render a JSON API document.

require 'jsonapi/serializable' class UserResource < JSONAPI::Serializable::Resource type :users attributes :name, :email end user = OpenStruct.new(id: 1, name: 'John', email: 'john@example.com') renderer = JSONAPI::Serializable::Renderer.new renderer.render(user, class: { User: UserResource })
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
4
Amazon
1
Resources
jsonapi-serializable — gem install jsonapi-serializable · libregistry