Json Array To Php Array Length Function In Cpp