In JSON files, AI leaves a trailing quote or comma

Problem description

When the AI suggests something to me, it leaves a trailing quotation mark, in JSON.

Expected behavior

It should not leave any quotation marks or commas at the end.

Actual behavior

It leaves trailing quotation marks and commas, which would cause errors.

Steps to reproduce

  • Create a new Repl with the Blank Repl template.
  • Create a JSON file.
  • Type stuff.
  • Wait for AI to give a suggestion. It may have a quote or comma at the end.

Browser

Chrome

OS

Windows 10

Device if mobile

N/A

Plan

free tier

For some reason, the template doesn’t allow me to give a screenshot so here it is:
image

Also:

Link to where the bug occured

https://replit.com/@element1010/OP-recipes-datapack#data/op_recipes/recipes/spawn_eggs/bat_spawn_egg.json

This isn’t unique to JSON, doing this in any file in any language causes this, AFAIK.

1 Like