Forum: Ruby on Rails JSON Array in Rails

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Tom D. (Guest)
on 2017-01-31 10:10
i created this JSON in Rails with "render json:"

but the right JSON is

How can i add "my" as a hash?

How can i create a array in database with the "set" array?

This topic is locked and can not be replied to.