{"action":"created","issue":{"url":"https://api.github.com/repos/sunng87/pyclj/issues/15","repository_url":"https://api.github.com/repos/sunng87/pyclj","labels_url":"https://api.github.com/repos/sunng87/pyclj/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/sunng87/pyclj/issues/15/comments","events_url":"https://api.github.com/repos/sunng87/pyclj/issues/15/events","html_url":"https://github.com/sunng87/pyclj/issues/15","id":154051384,"number":15,"title":"Decoder does not handle type \"object\"","user":{"login":"bkhouri","id":10914661,"avatar_url":"https://avatars.githubusercontent.com/u/10914661?v=3","gravatar_id":"","url":"https://api.github.com/users/bkhouri","html_url":"https://github.com/bkhouri","followers_url":"https://api.github.com/users/bkhouri/followers","following_url":"https://api.github.com/users/bkhouri/following{/other_user}","gists_url":"https://api.github.com/users/bkhouri/gists{/gist_id}","starred_url":"https://api.github.com/users/bkhouri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkhouri/subscriptions","organizations_url":"https://api.github.com/users/bkhouri/orgs","repos_url":"https://api.github.com/users/bkhouri/repos","events_url":"https://api.github.com/users/bkhouri/events{/privacy}","received_events_url":"https://api.github.com/users/bkhouri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-10T16:34:42Z","updated_at":"2016-05-11T02:28:21Z","closed_at":null,"body":"I have a response that returns the following syntax\r\n\r\n`#object[<namespace>.<record> <hex_number> \"<edn>\"]`\r\n\r\nHere is a sample output\r\n\r\n    #object[com.example.funktown.DoubleEntity 0x66c5e52e \"{:my/keyword1 :my/keyword2, :keyword3 1462827186240, :my/keyword3 \\\"This is a string\\\", :my/key5 #inst \\\"1970-01-01T00:00:00.000-00:00\\\"}\"]\r\n\r\nHowever, calling `clj.loads(data)`  with the above fails with the following:\r\n\r\n    >>> data = '#object[com.example.funktown.DoubleEntity 0x66c5e52e \"{:my/keyword1 :my/keyword2, :keyword3 1462827186240, :my/keyword3 \\\"This is a string\\\", :my/key5 #inst \\\"1970-01-01T00:00:00.000-00:00\\\"}\"]'\r\n    >>> clj.loads(data)\r\n    Traceback (most recent call last):\r\n      File \"<stdin>\", line 1, in <module>\r\n      File \"/usr/lib/python2.7/site-packages/clj.py\", line 407, in loads\r\n        result = load(buf)\r\n      File \"/usr/lib/python2.7/site-packages/clj.py\", line 403, in load\r\n        return decoder.decode()\r\n      File \"/usr/lib/python2.7/site-packages/clj.py\", line 82, in decode\r\n        v = self.__read_token()\r\n      File \"/usr/lib/python2.7/site-packages/clj.py\", line 263, in __read_token\r\n        raise ValueError('Unexpected char: \"%s\" at line %d, col %d' % (c, self.cur_line, self.cur_pos))\r\n    ValueError: Unexpected char: \"#\" at line 1, col 1\r\n\r\n\r\nI'm not familiar with clojure well enough, but it would be nice to handle the type `object`.  Or maybe provide function that would return only the the EDN data structure."},"comment":{"url":"https://api.github.com/repos/sunng87/pyclj/issues/comments/218346063","html_url":"https://github.com/sunng87/pyclj/issues/15#issuecomment-218346063","issue_url":"https://api.github.com/repos/sunng87/pyclj/issues/15","id":218346063,"user":{"login":"sunng87","id":221942,"avatar_url":"https://avatars.githubusercontent.com/u/221942?v=3","gravatar_id":"","url":"https://api.github.com/users/sunng87","html_url":"https://github.com/sunng87","followers_url":"https://api.github.com/users/sunng87/followers","following_url":"https://api.github.com/users/sunng87/following{/other_user}","gists_url":"https://api.github.com/users/sunng87/gists{/gist_id}","starred_url":"https://api.github.com/users/sunng87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunng87/subscriptions","organizations_url":"https://api.github.com/users/sunng87/orgs","repos_url":"https://api.github.com/users/sunng87/repos","events_url":"https://api.github.com/users/sunng87/events{/privacy}","received_events_url":"https://api.github.com/users/sunng87/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T02:28:21Z","updated_at":"2016-05-11T02:28:21Z","body":"Yes this is true, object/record were no supported in this library. Because we cannot find `com.example.funktown.DoubleEntity` type on the python side. Perhaps you can transform your clojure object to a map before given it to python."}}