mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpiutil] Update json to 3.11.2 (#5680)
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include "ConnectionList.h"
|
||||
|
||||
#include <wpi/SmallVector.h>
|
||||
#include <wpi/json_serializer.h>
|
||||
#include <wpi/json.h>
|
||||
#include <wpi/raw_ostream.h>
|
||||
|
||||
#include "IListenerStorage.h"
|
||||
|
||||
@@ -719,7 +719,7 @@ Java_edu_wpi_first_networktables_NetworkTablesJNI_setTopicProperty
|
||||
{
|
||||
wpi::json j;
|
||||
try {
|
||||
j = wpi::json::parse(JStringRef{env, value});
|
||||
j = wpi::json::parse(std::string_view{JStringRef{env, value}});
|
||||
} catch (wpi::json::parse_error& err) {
|
||||
illegalArgEx.Throw(
|
||||
env, fmt::format("could not parse value JSON: {}", err.what()));
|
||||
@@ -763,7 +763,7 @@ Java_edu_wpi_first_networktables_NetworkTablesJNI_setTopicProperties
|
||||
{
|
||||
wpi::json j;
|
||||
try {
|
||||
j = wpi::json::parse(JStringRef{env, properties});
|
||||
j = wpi::json::parse(std::string_view{JStringRef{env, properties}});
|
||||
} catch (wpi::json::parse_error& err) {
|
||||
illegalArgEx.Throw(
|
||||
env, fmt::format("could not parse properties JSON: {}", err.what()));
|
||||
@@ -828,7 +828,7 @@ Java_edu_wpi_first_networktables_NetworkTablesJNI_publishEx
|
||||
{
|
||||
wpi::json j;
|
||||
try {
|
||||
j = wpi::json::parse(JStringRef{env, properties});
|
||||
j = wpi::json::parse(std::string_view{JStringRef{env, properties}});
|
||||
} catch (wpi::json::parse_error& err) {
|
||||
illegalArgEx.Throw(
|
||||
env, fmt::format("could not parse properties JSON: {}", err.what()));
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include <wpi/MessagePack.h>
|
||||
#include <wpi/SmallVector.h>
|
||||
#include <wpi/StringExtras.h>
|
||||
#include <wpi/json_serializer.h>
|
||||
#include <wpi/json.h>
|
||||
#include <wpi/raw_ostream.h>
|
||||
#include <wpi/timestamp.h>
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include <optional>
|
||||
|
||||
#include <wpi/json_serializer.h>
|
||||
#include <wpi/json.h>
|
||||
#include <wpi/mpack.h>
|
||||
#include <wpi/raw_ostream.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user