Modifications to support getting parameters from JSON body