Bug Fix to return json for art or html

logic was reversed...