Small modification to jsonobject.cpp get function