@@ -8,7 +8,7 @@ module TestMOF
88
99using Test
1010
11- import JSON3
11+ import JSON
1212import JSONSchema
1313import MathOptInterface as MOI
1414
@@ -17,7 +17,10 @@ const MOF = MOI.FileFormats.MOF
1717const TEST_MOF_FILE = " test.mof.json"
1818
1919const SCHEMA = JSONSchema. Schema (
20- JSON3. read (read (MOI. FileFormats. MOF. SCHEMA_PATH, String), Dict{String,Any}),
20+ JSON. parse (
21+ read (MOI. FileFormats. MOF. SCHEMA_PATH, String);
22+ dicttype = Dict{String,Any},
23+ ),
2124)
2225
2326function runtests ()
@@ -40,7 +43,7 @@ function _validate(filename::String)
4043 " r" ,
4144 MOI. FileFormats. AutomaticCompression (),
4245 ) do io
43- object = JSON3 . read (io, Dict{String,Any})
46+ object = JSON . parse (io; dicttype = Dict{String,Any})
4447 ret = JSONSchema. validate (SCHEMA, object)
4548 if ret != = nothing
4649 error (
@@ -1565,7 +1568,7 @@ function test_use_nlp_block()
15651568 io = IOBuffer ()
15661569 write (io, model)
15671570 seekstart (io)
1568- object = JSON3 . read (io, Dict{String,Any})
1571+ object = JSON . parse (io; dicttype = Dict{String,Any})
15691572 @test object[" has_scalar_nonlinear" ] == true
15701573 @test JSONSchema. validate (SCHEMA, object) === nothing
15711574 # Test (; use_nlp_block = nothing)
0 commit comments