Get file content in JSON format

mgnavarrete 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

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events