Overview
Features
Download
Documentation
Community
Add-Ons & Services

POCO 1.5.2 - Bugs and feature request (Poco::JSON)

Please post support and help requests here.

POCO 1.5.2 - Bugs and feature request (Poco::JSON)

Postby szulak » 28 Nov 2013, 13:03

Hey there,
After using POCO libraries for some days, we've meet such issues.

Bugs:
      Poco::JSON::Object isArray method returns true for all kind of types
      There is no way to determine, if Poco::Dynamic::Var holds Poco::JSON::Array or Poco::JSON::Object

Code: Select all
void foo(Poco::Dynamic::Var& var)
{
   try
   {
      Poco::JSON::Array array = var.extract<Poco::JSON::Array>();
      //var is an array
   }
   catch (Poco::BadCastException&)
   {
      //var is an object
      Poco::JSON::Object object = var.extract<Poco::JSON::Object>();
   }
}


Feature requests:
    Missing methods such as isBoolean for Poco::Dynamic::Var

Best regads,
szulak
szulak
 
Posts: 1
Joined: 28 Nov 2013, 12:48

Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron