title: json_to_record result to in the record variable to use with in the functions
body: <pre><code>CREATE or REPLACE FUNCTION &quot;[GetJsonParams]&quot;(
    params json)
    
        RETURNS setof Record
        LANGUAGE 'plpgsql'
        VOLATILE PARALLEL UNSAFE
        
    AS $BODY$
    
        DECLARE CityIDPK BIGINT ;
        Declare rs record;
        
    Begin
  
   select * into rs from
           json_to_record(params)as x(
                      p1 int ,
                      p2  text,
                      p3  text,
                      p4  text,
                      p5  text,
                      p6  text,
                      p7  text,
                      p8  text,
                      p9  text,
                      p10 text,
                      p11 text,
                      p12 text,
                      p13 int,
                      p14 text,
                      p15 int,
                      p16 text  
                  );
  
      Return Rs;
      COMMIT ;
      END;
   $BODY$;
  </code></pre>