The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get file content in JSON format

mgnavarrete
Contributor
May 11, 2023

Is there any way to get the content of a file in JSON format as it was in Bitbucket Server? I don't mind if has different values but I need it in JSON format so the result of the query can be parsed.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 23, 2023

Hi @mgnavarrete,

The Bitbucket Cloud API for retrieving a file's content returns the raw contents of the file:

You can get the file metadata in JSON format, but I'm afraid it is not possible to retrieve the content in JSON.

Kind regards,
Theodora

TAGS
AUG Leaders

Atlassian Community Events