I have limited .htaccess knowledge and requires some help. I need to redirect all page request to www.newdomain.com except for www.olddomain/page.json but the query string get d
You need to add [QSA] and optionally [NE] which should give you:
RewriteRule (.*) http://newdomain.com/$1 [QSA,NE,R=301,L]
Use the [QSA] flag ("query string append")