Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
This works, but I want to add to the JSON response before returning it to ensure Asynchronous responses (http://easyautocomplete.com/guide#sec-async). How can I add the inputphrase to existing JSON object before returning it? inputPhrase in the easyautocomplete docs would have the value stored in $SearchWord in my perl.my $tmp = $dbh->selectall_arrayref($query, { Slice => {} }, $SearchWor +d ); my $json_str = encode_json( $tmp );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Append JSON (from hashref)
by Corion (Patriarch) on Apr 06, 2017 at 11:11 UTC | |
by Anonymous Monk on Apr 06, 2017 at 11:34 UTC | |
by Corion (Patriarch) on Apr 06, 2017 at 11:39 UTC | |
by Anonymous Monk on Apr 06, 2017 at 13:29 UTC | |
by Corion (Patriarch) on Apr 06, 2017 at 13:32 UTC | |
| |
by huck (Prior) on Apr 06, 2017 at 11:37 UTC |