it looks like all you are missing is an argument file=
fromJSON( file = json_file, method = "C", unexpected.escape = "error" )
if you look args(fromJSON)
> args(fromJSON)
function (json_str, file, method = "C", unexpected.escape = "error")
, json_str, - file. , , . ( , json_file json-, .. , .)