Fix json errors in the library.