function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Joshua FeistJoshua Feist 

Better visualization of JSON results

Hi,

I'm trying to figure out if it's possible to take some JSON code produced with a button push on an Account object and convert it into something that's easier on the eyes. I've found something that does this fairly well (http://chris.photobooks.com/json/default.htm) and I'm looking for Salesforce to do something similar.

Is it possible to make a custom button that does and API call to retrieve data from an external database and then display it in a table? If so, can someone help me get the ball rolling with the code?

Currently, the button is just a URL and I'm passing in one parameter:  https://api.data.gov/sam/v1/registrations?api_key=(insertkeyhere)&qterms=duns:{!Account.DUNS_Number__c}

I think I would need to change the button's Content Source to Javascript or VisualForce page?