private void replaceTop(JsonScope newTop){
  stack.set(stack.size() - 1,newTop);
}

private void replaceTop ( JsonScope newTop ) { stack . set ( stack . size ( ) - 1 , newTop ) ; }
replace the value on the top of the stack with the given value .
