Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[Pull request failed] json validation error

1612813320
David M.
Pro
API Scripter
This is driving me nuts. Trying to complete a pull request for my !Radar script and keep getting the following json validation error: Radar/script.json: error: validate: invalid character '\n' in string literal The following is the script.json in question. Any ideas? { "name": "Radar", "script": "Radar.js", "version": "0.6", "description": "The Radar script creates an animated wavefront from a selected token to reveal visible and invisible tokens on the map, with optional character or token property filters. Output including directional and distance information of qualifying tokens is whispered in the chat to the player calling the script, via the default template.\rFor full documentation (with examples), visit the script forum thread [here](<a href="https://app.roll20.net/forum/post/9137492/script-radar-an-animated-token-sensor-slash-tremorsense-slash-blindsense-slash-divine-sense-etc-solution-with-optional-dynamic-lighting-interaction/?pageforid=9137492#post-9137492" rel="nofollow">https://app.roll20.net/forum/post/9137492/script-radar-an-animated-token-sensor-slash-tremorsense-slash-blindsense-slash-divine-sense-etc-solution-with-optional-dynamic-lighting-interaction/?pageforid=9137492#post-9137492</a>)", "authors": "David M.", "roll20userid": 3987469, "patreon": "", "useroptions": [], "dependencies": [], "modifies": { "character.*": "read", "path.*": "read", "graphic.*": "read, write", "player.displayname": "read" }, "conflicts": [], "previousversions": [ "0.1", "0.2", "0.3", "0.4", "0.4.1", "0.5 ] }
1612814306
The Aaron
Roll20 Production Team
API Scripter
You're missing the closing quote after "0.5 on line 24.&nbsp; The error shows up on line 23, which is weird, but that's the problem.
1612814443
The Aaron
Roll20 Production Team
API Scripter
This linter does a pretty good job of finding the error:&nbsp;<a href="https://jsonformatter.curiousconcept.com/#" rel="nofollow">https://jsonformatter.curiousconcept.com/#</a>
1612814924
David M.
Pro
API Scripter
[facepalm] Thank you. I wasn't even looking there, since I was only editing the description. Must have made a rogue delete while in some sort of fugue state.
1612815238

Edited 1612815252
The Aaron
Roll20 Production Team
API Scripter
No problem.&nbsp; Sometimes the simplest problems can be the hardest to spot.&nbsp; =D&nbsp; This is part of why I built a release script to do all these edits for me... =D