Using the current versions for jtd-infer (v0.2.1) and jtd-codegen (v.0.4.1) aren't compatible with each other on Windows 11.
jtd-infer outputs the file in UTF-16 LE when this same file is used as input for jtd-codegen you will get the following error:
Error: Failed to parse input as JSON
Caused by:
expected value at line 1 column 1
This is cause by the fact that jtd-codegen can not interpret UTF-16 LE formatted text files correctly.
Converting to or copying and saving the contents of the jtd schema output from jtd-infer to UTF8 is a temporary workaround.
Using the current versions for jtd-infer (v0.2.1) and jtd-codegen (v.0.4.1) aren't compatible with each other on Windows 11.
jtd-infer outputs the file in UTF-16 LE when this same file is used as input for jtd-codegen you will get the following error: Error: Failed to parse input as JSON
Caused by: expected value at line 1 column 1
This is cause by the fact that jtd-codegen can not interpret UTF-16 LE formatted text files correctly. Converting to or copying and saving the contents of the jtd schema output from jtd-infer to UTF8 is a temporary workaround.