⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Backport191
All Projects
Ruby
»
Backport191
Overview
Activity
Issues
Like
Download (425 Bytes)
Bug #2980
» prueba.json
Json data file -
koteo (Koldo Oteo)
, 03/18/2010 11:29 AM
#
GENERADO
EL
HASH
ASI
#
hosts_config
=
{
:host
1
=>
{
:ip=>
"127.0.0.1"
,
:ports=>
[
"1020"
,
"1030"
]},
:host
2
=>
{
:ip=>
"127.0.0.2"
,
:ports=>
[
"1040"
,
"1050"
]}}{
#
#
ASI
PASAMOS
A
FORMATO
JSON
#
puts
JSON.pretty_generate(hosts_config)
"host1"
:
{
"ip"
:
"127.0.0.1"
,
"ports"
:
[
"1020"
,
"1030"
]
},
"host2"
:
{
"ip"
:
"127.0.0.2"
,
"ports"
:
[
"1040"
,
"1050"
]
}
}
« Previous
1
2
Next »
(2-2/2)
Loading...