Jump to content

Json::getType()


photo

Recommended Posts

Hi,

Looks like there is no other way to know the Json object type apart of making some if-else structure using the "Json::isXXX()" methods.

 

I would be good to add access to Json::type (Json::getType()) attribute and the associated enumeration { NONE , BOOL, NUMBER, STRING, ARRAY, OBJECT } to replace those "if-elseif" by a switch stament.

 

Thanks.

  • Like 1
Link to comment
  • 2 weeks later...
×
×
  • Create New...