in reply to Re^2: Json epoch datetime with perl
in thread Json epoch datetime with perl
poj#!perl; use strict; use JSON; my $json = new JSON->escape_slash(); my $roundParams = { 'AllowParticipantsToSeeEachOther' => JSON::PP::true, 'DurationInMinutes' => 10, 'MaxGamePegValue' => 5, 'MaxNumberOfCrackAttemptsPerCode' => 18, 'MaxNumberOfCrackAttemptsPerTeam' => 0, 'NumberOfDefaultHostParticipants' => 1, 'NumberOfPegsInRound' => 4, 'RoundStartTime' => "/Date(".time.")/", 'TimeBetweenRoundATimeBetweenRoundAttemptsInSeconds' => 10 }; print $json->encode($roundParams);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Json epoch datetime with perl
by gurpreetsingh13 (Scribe) on May 28, 2014 at 10:53 UTC | |
by Anonymous Monk on May 28, 2014 at 11:26 UTC |