{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"closed","user":{"avatar_url":"https://secure.gravatar.com/avatar/22ff3179451f312e96d89a0c62922c70?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"22ff3179451f312e96d89a0c62922c70","url":"https://api.github.com/users/bhavinkamani","login":"bhavinkamani","id":120816},"milestone":null,"labels":[],"assignee":null,"updated_at":"2011-11-13T07:10:06Z","comments":2,"closed_at":"2011-11-12T13:25:34Z","url":"https://api.github.com/repos/tenderlove/psych/issues/30","body":"I am facing following issue while parsing json data containing timestamp. Psych is able to parse timestamp when it is not wrapped with braces. With braces it parse date correctly. However, timestamp with braces (json hash) breaks.\r\n\r\n``` ruby\r\n1.9.2 (main):0 > YAML::ENGINE.yamler = \"psych\"\r\n=> \"psych\"\r\n1.9.2 (main):0 > YAML.load \"CREATE_DT: 2011-09-27 04:38:25.0\"\r\n=> {\"CREATE_DT\"=>2011-09-27 10:08:25 +0530}\r\n1.9.2 (main):0 > YAML.load \"{CREATE_DT: 2011-09-27}\"\r\n=> {\"CREATE_DT\"=>#<Date: 2011-09-27 (4911663/2,0,2299161)>}\r\n1.9.2 (main):0 > YAML.load \"{CREATE_DT: 2011-09-27 04:38:25.0}\"\r\nPsych::SyntaxError: couldn't parse YAML at line 1 column 25\r\nfrom /Volumes/DATA/Bhavin/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/psych.rb:148:in `parse'\r\n``` ","html_url":"https://github.com/tenderlove/psych/issues/30","number":30,"title":"parsing timestamp","id":1763449,"created_at":"2011-09-28T11:19:32Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/22ff3179451f312e96d89a0c62922c70?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"22ff3179451f312e96d89a0c62922c70","url":"https://api.github.com/users/bhavinkamani","login":"bhavinkamani","id":120816},"updated_at":"2011-11-13T07:10:06Z","url":"https://api.github.com/repos/tenderlove/psych/issues/comments/2721171","body":"Thanks Aaron. \r\n\r\nJust for the benefit of others. \r\n\r\n``` ruby\r\nYAML.load \"CREATE_DT: !!timestamp '2011-09-27 04:38:25.0'\"\r\n => {\"CREATE_DT\"=>2011-09-27 10:08:25 +0530}\r\n```","id":2721171,"created_at":"2011-11-13T07:10:06Z"}}