Skip to content
Discussion options

You must be logged in to vote

Well, I am missing a lot of details about your situation, but it sounds like you want to output "data" from your job, and then upload that data into a bucket. Then you can use the bucket data as a source to populate a menu. Here are the steps:

In your job script, output data like this:

echo '{ "xy":1, "data":{ "menu_items":["Item 1", "Item 2", "Item 3"] } }'

The menu_items property name is arbitrary. Name it whatever you want. They key thing to remember is that it has to be inside a data wrapper object, alongside the "xy":1 wire protocol flag, and it has to be a JSON array (square brackets).

Next, run your job and confirm that you can see the output data formatted nicely in the job detail…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@greenaar
Comment options

Answer selected by greenaar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants