6
Ich bin wirklich neu in Ruby-Entwicklung. Ich versuche, eine JSON-Datei mit Zeichenfolgen zu erstellen. Meine JSON-Datei wie unten. Können Sie mir helfen mit Rubin aus einem HashJSON-Objekt aus String mit Rubin erstellen
{
"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"}}
]
}
]
}
}