Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

JSON implementation bug #31

Closed
aleks-f opened this Issue Dec 11, 2012 · 0 comments

Comments

Projects
None yet
1 participant
Owner

aleks-f commented Dec 11, 2012

posted in forum:

http://pocoproject.org/forum/viewtopic.php?f=10&t=5670

JSON implementation, bug or not....
by ScorpZ » Tue Dec 11, 2012 9:02 am

Hello to all.
-> I downloaded 1.5.0 POCO with JSON support.
-> Compiled and run my application (with POCO::JSON)
-> All object types (Include/Poco/Json/Object.h) return as Arrays and Objects (Poco::JSON::Object::isArray() and ... isObject() return true)
-> I looked Object.h header file and i saw there -
//-----------------------------------------------------------------------------------------------------------
CODE: SELECT ALL
inline bool Object::isArray(const std::string& key) const
{
ValueMap::const_iterator it = _values.find(key);
return it != _values.end() || it->second.type() == typeid(Array::Ptr);
}

//-----------------------------------------------------------------------------------------------------------
-> It method returns true for all found properties
-> Maybe must by

CODE: SELECT ALL
inline bool Object::isArray(const std::string& key) const
{
ValueMap::const_iterator it = _values.find(key);
return it != _values.end() && it->second.type() == typeid(Array::Ptr);
}

.Thanks
ScorpZ

Posts: 1
Joined: Tue Dec 11, 2012 8:47 am

@ghost ghost assigned aleks-f Dec 11, 2012

aleks-f added a commit that referenced this issue Dec 12, 2012

GH31: JSON implementation bug
fixed GH #31: JSON implementation bug

@aleks-f aleks-f closed this Dec 17, 2012

obiltschnig pushed a commit that referenced this issue Jan 12, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment