BookmarkSubscribeRSS Feed
raffd001
Calcite | Level 5

Can someone please provide example of using prc http and API call using DS2 to parse JSON? Do you need to obtain an auth token and header? Currently use groovy to parse json and it at times is very ugly.

Sample json provided. This can give me a headstart.

 

Any assistance is greatly appreciated.

 

1 REPLY 1
AndreasMenrath
Pyrite | Level 9
What about searching the communities?
Here is already a high quality example: https://communities.sas.com/t5/SAS-Communities-Library/Using-DS2-to-parse-JSON-from-a-REST-API/ta-p/...
personal SAS projects:
- SAS linklist: awesome-sas
- SAS Testing Framework: saspytest

CFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1922 views
  • 0 likes
  • 2 in conversation