1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

json 'invalid json: unterminated object at line 1 column 14

Discussion in 'Skript' started by Buddha, Apr 23, 2017.

Tags:
Thread Status:
Not open for further replies.
  1. Buddha

    Buddha Member

    Joined:
    Apr 22, 2017
    Messages:
    20
    Likes Received:
    0
    Hi all, I've just been working on a script which cancels a player's message, and instead sends a json with the message in. I have installed the json.sk into my scripts folder, and done nothing else as I think that's all needed.

    I am attempting to use the code below to do what I want, but I get '[Server: Invalid json: Unterminated object at line 1 column 14]' whenever I speak in the chat now. Nothing is printed.

    Code (Skript):
    1. on chat:
    2.     cancel event
    3.     json("@a", "%player%||ttp:&cClick to send a message to this user!|| &f>>>%message%")
    thanks for any help.
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    same in my skript... the error appeared suddenly and i cant fix it.

    Error:
    Code (Skript):
    1. Invalid json: Unterminated object at line 1 column 14
    Skript line:
    Code (Skript):
    1. json("%{_p}%" , "&a%player% ||ttp:&7&aDeveloper%nl%&7Status: %{chat.status.%player%}%%nl%%nl%&7&o%hour%:%minute% Uhr||&8» &7%message%")
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
Thread Status:
Not open for further replies.

Share This Page

Loading...