File indexing completed on 2024-05-05 04:42:47

0001 /*
0002     SPDX-FileCopyrightText: 2023 Volker Krause <vkrause@kde.org>
0003     SPDX-License-Identifier: LGPL-2.0-or-later
0004 */
0005 
0006 #ifndef KPUBLICTRANSPORT_JSONPOINTER_H
0007 #define KPUBLICTRANSPORT_JSONPOINTER_H
0008 
0009 class QJsonValue;
0010 class QStringView;
0011 
0012 namespace KPublicTransport {
0013 
0014 
0015 /** JSONPointer according to RFC 6901.
0016  *  @note This does not implement the ~ quoting rules yet,
0017  *  as those don't matter for the uses here.
0018  */
0019 namespace JsonPointer {
0020 
0021 QJsonValue evaluate(const QJsonValue &obj, QStringView jsonPath);
0022 
0023 }
0024 
0025 }
0026 
0027 #endif