Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
final String MY_NAMESPACE_PREFIX = 'ns__';
String cleanedJSON = JSON.serialize(subject);
cleanedJSON = cleanedJSON.replaceAll('"'+MY_NAMESPACE_PREFIX+'([a-zA-Z0-9_-]+":)', '"$1');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment