Skip to content

Instantly share code, notes, and snippets.

@capeterson
Created March 23, 2014 22:54
Show Gist options
  • Save capeterson/9731104 to your computer and use it in GitHub Desktop.
Save capeterson/9731104 to your computer and use it in GitHub Desktop.
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