How to escape a JSON string to have it in a URL? November 29, 2022 by Tarik encodeURIComponent(JSON.stringify(object_to_be_serialised))