functions-public: added viewjson function, for viewing JSON files