sending json for mobiles request if html rendering html