Fix Json - do not use new constants
replaced Framework::isHhvm() by checking for HHVM_VERSION constant