I'd be receptive to any mechanism that would allow one to add additional 
root properties :)
Thank you for your consideration if this.

On Wednesday, May 3, 2017 at 11:55:43 PM UTC-6, Jeremy Evans wrote:
>
> On Wednesday, May 3, 2017 at 10:29:57 PM UTC-7, Bryan Beecher wrote:
>>
>>
>> Regarding the json_serializer plugin 
>> <http://sequel.jeremyevans.net/rdoc-plugins/classes/Sequel/Plugins/JsonSerializer.html>...
>>  
>> Is it possible to add additional properties alongside the root (using 
>> `:root => true`) property of a serialized json array?
>> eg. a totalResultsCount property or links property containing hypermedia 
>> links for an API.
>>
>
> Not currently, but I'm guessing it would be possible to support this by 
> having to_json accept a block, and yielding the json to the block, and 
> using the result. Thoughts on that?
>
> Thanks,
> Jeremy
>

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to