set json as default reader and writer
set class attributes protected