support for AngularJS like JSON protection