Arduino online browser creator library json broken

(deleted)

smartsparemote:
something changed by whoever manages the Arduino online libraries.

The libraries are managed automatically. Whenever the maintainer of each library (which are hundreds of different members of the Arduino community who have no formal association with Arduino Create) makes a new release, within a matter of hours the Library Manager indexer automatically picks it up and makes it available for use with your sketches in Arduino Web Editor. This is a significant difference between Arduino Web Editor and the local tools like Arduino IDE, where you must manually install and update the Library Manager libraries.

Although very convenient to always use the latest version of the libraries so you can benefit from the ongoing development work, this automatic update can make your sketches subject to breakage at any moment due to bugs or intentional breaking changes released by the library authors. However, it's not a requirement. Alll versions of all the libraries are avaialble in Arduino web Editor and you are welcome to specify the exact library version you want each sketch to use. Here's how you can do it:

  • Open the sketch you want to configure the library version for.
  • From the menu on the left side of the window, click "Libraries".
  • Click the "Library Manager" button.
  • In the "Search Library" field, type "arduinojson".
  • If the star to the right of "ArduinoJson A simple and efficient JSON Library for embedded C++" is not solid teal, click on it to "star" the library.
  • Click the "Done" button.
  • In the "Libraries" menu, click the "Favorites" tab.
  • In the "Search Libraries" field, type "arduinojson".
  • Hover the mouse pointer over "ArduinoJson A simple and efficient JSON Library for embedded C++".
  • You should now see an "Include" button. Click the downward pointing triangle to the right of the button.
  • Select the version of the library you want your sketch to use.

You will now see something like this added to your sketch:

// ArduinoJson - Version: 6.16.1

Note that this is only a comment. It has no functional purpose. You can delete it if you like. If you change the version number in the comment, it won't have any effect. The library version you selected is stored in the sketch.json metadata file, and it is this file that determines which library versions are used by the sketch. So you need to always repeat the steps I provided above when you want to use a different library version.

When you do this, I do recommend that you periodically check the libraries to see whether there have been useful improvements in the releases since the one you pinned. Many of the library developers are regularly working on these libraries, so it would be a shame to miss out on benefiting from that.