Search... Ctrl + K

Convert JavaScript Object to JSON String (helper)
One script reply has been approved by the moderators Verified

Created by daltonarrapsder 178 days ago Used 18 times 0 Points

No comments yet

Points: 0
deno
One script reply has been approved by the moderators
Ap­pro­ved
// Set indented to true for pretty JSON.
export async function main(value: object, indented = false) {
	return JSON.stringify(value, null, indented ? 2 : null);
}

Submitted by jaller94 112 days ago

Edited 112 days ago

No comments yet