handled json decoding into stdClass object