How to install JSON simple to 2020 WPILib Java

Could help explain how to install third party libraries not native to FRC (navX, phoenix). I’ve been struggling to install libraries to the new vendor format, specifically JSON simple.

1 Like

Because json-simple is available in Maven Central, you should just be able to add the following line inside of dependencies { ... } in your project’s build.gradle file and build the code.

compile 'com.googlecode.json-simple:json-simple:1.1.1'

I added the line. it was able to build, however vendordeps did not update with the new files nor was there any options to install it through “Manage Vendor Libraries”

Vendordeps are only for FRC-specific libraries. Anything non-FRC will not be updated through vscode or appear in vendordeps. As long as the library is defined as a dependency with gradle you should have it installed.

Oh snap, I just reloaded now its an option to import. Thanks a ton!

Note that 2020 does have Jackson installed as a default library, so you can use that for json without installing anything. Or you can install something else, both options work.

2 Likes

Is that documented anywhere? Are there other new library additions?

I thought it was in the new for 2020 page, but apparently not. We’re working on adding it there.

But for external libraries not currently on the new for 2020 page, Java gained Jackson and EJML, and C++ gained Eigen.

2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.