perl encoding string in json

Job ID: 30659967

Budget: $12 – $30 SGD

i have a string how to encode this in json with perl ?
example [id1,id2,payload]
[3,"2380",{"currentTime":"2021-06-25T01:03:35.665579","interval":20,"status":"Accepted"}]
Related categories: Perl JSON