Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Is there a way to make a JSON out of multiple records from MySQL?by bartender1382 (Beadle) |
on May 11, 2022 at 02:57 UTC ( [id://11143765]=perlquestion: print w/replies, xml ) | Need Help?? |
bartender1382 has asked for the wisdom of the Perl Monks concerning the following question: I am trying to transfer data from MySQL, over to an app in Swift. I use the following code when I have to send over just ONE record: This creates a hash of every field in my table
Then I encode the JSON like so, so I can send it over as HTTP DATA
However, I am now pulling more than one record, and I wondered if it's possible to export multiple records to JSON?
Back to
Seekers of Perl Wisdom
|
|