6
Tôi thực sự mới về phát triển Ruby. Tôi đang cố gắng để tạo ra một tập tin json với chuỗi. Tập tin json của tôi như dưới đây. bạn có thể giúp tôitạo đối tượng json từ chuỗi với ruby
{
"App":{
"properties":{"color":"red"},
"screens":[
{"id":"page1", "properties":{"color":"red"}, "elements":[
{"type":"txtbox", "properties":{"color":"red"}},
{"type":"button", "properties":{"color":"red"}}
]
},
{"id":"page2", "properties":{"color":"red"}, "elements":[
{"type":"txtbox", "properties":{"color":"red"}},
{"type":"button", "properties":{"color":"red"}}
]
}
]
}
}