| 1 | use Data::JavaScript; | ||
| 2 | |||
| 3 | $hash = {'string' => 'Joseph', | ||
| 4 | 'array' => [qw(0 1 2 3 4 5 6 7 8 9 a b c d e f)], | ||
| 5 | 'capitals' => {'Sverige' => 'Stockholm', | ||
| 6 | 'Norge' => 'Oslo', | ||
| 7 | 'Danmark' => 'Koebenhavn'}, | ||
| 8 | 'and' => [[0, 0], [0, 1]], | ||
| 9 | 'or' => [[0, 1], [1, 1]], | ||
| 10 | 'xor' => [[0, 1], [1, 0]]}; | ||
| 11 | $hash->{'ref'} = $hash; | ||
| 12 | |||
| 13 | print scalar(jsdump("facts", $hash, 31.4e-1)); | ||
| 14 |