modified for resources/json
display, and toggle JSON data