I am trying to post the following JSON with Mojo::UserAgent
use Mojo::UserAgent;
my $ua = Mojo::UserAgent->new;
my $ip = ...
$mojo->post( 'https://$ip:443/query' => json => { value=> True, Query => ... } );
I get an error
Bareword "JSON::true" not allowed while "strict subs"
but if I set it to True
it is interpreted as a string and not a JSON true value.
Any idea how to post a JSON true value?