Skip Menu |
 

This queue is for tickets about the XML-XML2JSON CPAN distribution.

Report information
The Basics
Id: 43213
Status: stalled
Priority: 0/
Queue: XML-XML2JSON

People
Owner: perl [...] xev.net
Requestors: c [...] eac.bz
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Type Error
Date: Wed, 11 Feb 2009 12:01:42 -0700
To: "bug-XML-XML2JSON " [...] rt.cpan.org
From: Christopher Greenwood <c [...] eac.bz>
Download (untitled) / with headers
text/plain 679b
*This message was transferred with a trial version of CommuniGate(r) Pro* Perl Version: 5.8.8 OS : Sun Solaris 8 Module: XML-XML2JSON Version : 0.05 Related Modules : JSON::XS 2.231 XML::LibXml 1.66 I'm getting an Invalid Data type error shown below while attempting to convert a json string to xml. I would assume since this module was designed to use a specific set of JSON modules this would be handled correctly. Please let me know if there is a quick fix to bypass this type error. <h1>Software error:</h1> <pre>Invalid data type for key: MARK_FOR (data type: JSON::XS::Boolean) at /usr/local/apache2/perllib /eac_ajax.pm line 1517 Thanks, Chris
Download (untitled) / with headers
text/plain 1.2k
On Wed Feb 11 14:38:01 2009, c@eac.bz wrote: Show quoted text
> *This message was transferred with a trial version of CommuniGate(r) > Pro* > Perl Version: 5.8.8 > OS : Sun Solaris 8 > > Module: XML-XML2JSON > Version : 0.05 > > Related Modules : JSON::XS 2.231 > XML::LibXml 1.66 > > I'm getting an Invalid Data type error shown below while attempting to > convert a json string to xml. I would assume since this module was > designed to use a specific set > of JSON modules this would be handled correctly. Please let me know > if there is a quick fix to bypass this type error. > > <h1>Software error:</h1> > <pre>Invalid data type for key: MARK_FOR (data type: > JSON::XS::Boolean) at /usr/local/apache2/perllib > /eac_ajax.pm line 1517 > > Thanks, > Chris >
Will you please post the json text that is throwing the error? It looks like my module isn't handling boolean values correctly though. I will admit that this module was written for the purpose of converting XML into JSON. It will convert JSON back into XML without problems as long as the JSON was created by this module. But it seems to have trouble with JSON from other sources. Now that more people seem to be trying to use this module to convert JSON into XML I will work on fixing these parsing errors.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.