[asterisk-bugs] [Asterisk 0014281]: [patch] JSON Manager Event Interface

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Jun 2 10:40:50 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14281 
====================================================================== 
Reported By:                PLL
Assigned To:                dbrooks
====================================================================== 
Project:                    Asterisk
Issue ID:                   14281
Category:                   Core/ManagerInterface/NewFeature
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 169443 
Request Review:              
====================================================================== 
Date Submitted:             2009-01-19 20:02 CST
Last Modified:              2009-06-02 10:40 CDT
====================================================================== 
Summary:                    [patch] JSON Manager Event Interface
Description: 
Make it easier to work with pure javascript Asterisk managers. Just adding
another option.
====================================================================== 

---------------------------------------------------------------------- 
 (0105901) dbrooks (manager) - 2009-06-02 10:40
 https://issues.asterisk.org/view.php?id=14281#c105901 
---------------------------------------------------------------------- 
PLL: Sorry, I'm not too familiar with python, unfortunately. I'm running
your test script, and I get the following traceback: 

Traceback (most recent call last):
  File "test_mjson-0.2.py", line 46, in <module>
    json_response = json.load(urllib2.urlopen(url))
  File "/usr/local/lib/python2.6/json/__init__.py", line 267, in load
    parse_constant=parse_constant, **kw)
  File "/usr/local/lib/python2.6/json/__init__.py", line 307, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python2.6/json/decoder.py", line 319, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python2.6/json/decoder.py", line 336, in
raw_decode
    obj, end = self._scanner.iterscan(s, **kw).next()
  File "/usr/local/lib/python2.6/json/scanner.py", line 55, in iterscan
    rval, next_pos = action(m, context)
  File "/usr/local/lib/python2.6/json/decoder.py", line 219, in JSONArray
    raise ValueError(errmsg("Expecting object", s, end))
ValueError: Expecting object: line 2 column 61 (char 62) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-02 10:40 dbrooks        Note Added: 0105901                          
======================================================================




More information about the asterisk-bugs mailing list