Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
124 views
in Technique[技术] by (71.8m points)

python - CURL Rest API data manipulation

So I am using a curl statement to get a json string

curl -H "Accept: application/json" -X POST -d 'plan=4' 'status=closed' https://example.com/rest/api/m_spl/search

It returns a long json string with columns then the content with the corresponding data underneath.

What's the best way to

  • View the json string in columns or turn it into a csv?
  • What is the best data structure to store the result so that I can sort, manipulate data? (array or list)?

Any recommendations would be appreciated.

  • code
  • websites with examples

thanks

question from:https://stackoverflow.com/questions/65623355/python-curl-rest-api-data-manipulation

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...