thank you Hal!
ad 1. yes, this should be possible using the file component
ad 2. the result in the example app is currently sent back in the title of the webviewer to App Inventor or are you talking about something else, e.g. to use JSON as standard output?
Taifun