Get the hash form? #6
-
Hello, Is there a way to get the hash form from the serializer, instead of the JSON string? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi Usman! Not in the current version, though I was intending to add one for testing purposes. Would love to hear about your use case, as most of the time you wouldn't need the hash form (building a hash is less performant than writing straight to JSON). |
Beta Was this translation helpful? Give feedback.
-
We are migrating from AMS, and some areas of our app use the hash form for various reasons (not rendering to the client). Since there isn't a |
Beta Was this translation helpful? Give feedback.
-
Rendering to a |
Beta Was this translation helpful? Give feedback.
Rendering to a
Hash
is now the default behavior (default_format :hash
), and can be also done explicitly withone_as_hash
andmany_as_hash
.