Fix method JSON setOptions method.