erstellen von json-Objekt aus string mit Rubin

Ich bin wirklich neues über die Ruby-Entwicklung. Ich bin versucht, erstellen Sie eine json-Datei mit strings. Meine json-Datei wie unten. Können Sie mir helfen, mich

{
    "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"}}
                                                ]
                }
        ]
    }
}

InformationsquelleAutor hiwordls | 2015-04-21

Schreibe einen Kommentar