VisualJsonEditor icon indicating copy to clipboard operation
VisualJsonEditor copied to clipboard

No valid document

Open ghost opened this issue 6 years ago • 3 comments

thanks for the msi fix tried to load my json file, a list of entries like this:

[ { "servoName": "leftHand.thumb", "arduino": 0, "servoId": 0, "pin": 2, "minComment": "open", "maxComment": "close", "minDegrees": -120, "maxDegrees": 120, "autoDetach": 1000, "restDegrees": 0, "enabled": true, "servoType": "MG996R", "cableTerminal": 0, "wireColorArduinoTerminal": "", "wireColorTerminalServo": "" }, ... ] but get this error:

image

how can a string be too short? Are the empty strings a problem?

Juerg

ghost avatar Nov 01 '18 15:11 ghost

Please post the full schema and full json data.

RicoSuter avatar Nov 01 '18 15:11 RicoSuter

Yes, empty string has length 0 and might be too short

RicoSuter avatar Mar 06 '19 23:03 RicoSuter

I testes it with empty strings and it works like a charm :) Maybe the JSON schema is wrong?