O Martes, 14 de Maio de 2013 17:35:24 Flavio Castelli escribiu: > On 05/04/2013 07:43 PM, Adrián Chaves Fernández wrote: > > I’m working on a library to interact with MediaWiki sites. Through the > > library, you perform a request to a MediaWiki server, which (usually) > > answers with JSON data. But I want to be able to let the library user know > > when that is not the case. > > > > So, I’m writing a unit test where the server answers with a non-empty > > string that is clearly *not* JSON. I was expecting that the parser would > > turn the “ok” variable to “false” in this case, however that is not what > > happens. Instead, the parser keeps “ok” to “true”, but a call to > > qCritical() is made. This is the code: > > Which version of qjson are you using? This problem has been fixed on master.
0.8.1, which seems to be the latest¹. — ¹ https://github.com/flavio/qjson/tags ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ QJson-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qjson-devel
