class ActiveModelSerializers::Adapter::JsonApi

def resource_objects_for(serializers, options)

[x] https://github.com/rails-api/active_model_serializers/pull/1340
meta
[x] url helpers https://github.com/rails-api/active_model_serializers/issues/1269
[x] https://github.com/rails-api/active_model_serializers/pull/1246
links
https://github.com/rails-api/active_model_serializers/pull/1029
https://github.com/rails-api/active_model_serializers/pull/1216
[x] https://github.com/rails-api/active_model_serializers/pull/1213
https://github.com/rails-api/active_model_serializers/pull/1122
type
prs:
}.reject! {|_,v| v.nil? }
meta: meta,
links: links,
relationships: relationships,
attributes: attributes,
id: '1336',
type: 'admin--some-user',
{
structure:
"Resource objects" appear in a JSON API document to represent resources
description:

meta
links
relationships
attributes
id (required) : String
type (required) : String
properties:

JSON Object
definition:
resource
{http://jsonapi.org/format/#document-resource-objects Primary data}
def resource_objects_for(serializers, options)
  @primary = []
  @included = []
  @resource_identifiers = Set.new
  serializers.each { |serializer| process_resource(serializer, true, options) }
  serializers.each { |serializer| process_relationships(serializer, @include_tree, options) }
  [@primary, @included]
end