blob: ef710102c9d0d66c9b91f4158cdefcedc6c66cad [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/*
* Description : Test positional ($) statement parameters with json encoded request
* Expected Res : Success
* Date : Jun 2018
*/
// requesttype=application/json
// param args:json=[null, true, 42, 42.5, 42.5e2, "hello", ["99",100,{"a":null},null,true], {"a":[1,2,3]}]
{
"t1": {
"p_null": $1,
"p_bool": $2,
"p_int": $3,
"p_dec": $4,
"p_dbl": $5,
"p_str": $6,
"p_arr": $7,
"p_obj": $8
},
"t2": {
"p_null_type": $1 is null,
"p_bool_type": is_boolean($2),
"p_int_type": is_number($3),
"p_dec_type": is_number($4),
"p_dbl_type": is_number($5),
"p_str_type": is_string($6),
"p_arr_type": is_array($7),
"p_obj_type": is_object($8)
},
"t3": [ $1, $2, $3, $4, $5, $6, $7, $8 ]
}