define json constants instead of checking php version