LMMS
Loading...
Searching...
No Matches
juce_JSON.h
Go to the documentation of this file.
1/*
2 ==============================================================================
3
4 This file is part of the JUCE library.
5 Copyright (c) 2022 - Raw Material Software Limited
6
7 JUCE is an open source library subject to commercial or open-source
8 licensing.
9
10 The code included in this file is provided under the terms of the ISC license
11 http://www.isc.org/downloads/software-support-policy/isc-license. Permission
12 To use, copy, modify, and/or distribute this software for any purpose with or
13 without fee is hereby granted provided that the above copyright notice and
14 this permission notice appear in all copies.
15
16 JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
17 EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
18 DISCLAIMED.
19
20 ==============================================================================
21*/
22
23namespace juce
24{
25
26//==============================================================================
39{
40public:
41 //==============================================================================
56 static Result parse (const String& text, var& parsedResult);
57
67 static var parse (const String& text);
68
78 static var parse (const File& file);
79
89 static var parse (InputStream& input);
90
91 //==============================================================================
99 static String toString (const var& objectToFormat,
100 bool allOnOneLine = false,
101 int maximumDecimalPlaces = 15);
102
108 static var fromString (StringRef);
109
117 static void writeToStream (OutputStream& output,
118 const var& objectToFormat,
119 bool allOnOneLine = false,
120 int maximumDecimalPlaces = 15);
121
124
129 static Result parseQuotedString (String::CharPointerType& text, var& result);
130
131private:
132 //==============================================================================
133 JSON() = delete; // This class can't be instantiated - just use its static methods.
134};
135
136} // namespace juce
Definition juce_File.h:45
Definition juce_InputStream.h:37
static var fromString(StringRef)
Definition juce_JSON.cpp:468
static Result parse(const String &text, var &parsedResult)
Definition juce_JSON.cpp:489
static String escapeString(StringRef)
Definition juce_JSON.cpp:515
JSON()=delete
static String toString(const var &objectToFormat, bool allOnOneLine=false, int maximumDecimalPlaces=15)
Definition juce_JSON.cpp:503
static void writeToStream(OutputStream &output, const var &objectToFormat, bool allOnOneLine=false, int maximumDecimalPlaces=15)
Definition juce_JSON.cpp:510
static Result parseQuotedString(String::CharPointerType &text, var &result)
Definition juce_JSON.cpp:522
Definition juce_OutputStream.h:38
Definition juce_Result.h:57
Definition juce_String.h:53
Definition juce_StringRef.h:62
Definition juce_Variant.h:42
#define JUCE_API
Definition juce_StandardHeader.h:152
Definition carla_juce.cpp:31
const char * text
Definition swell-functions.h:167
int result
Definition process.c:1455
struct zdirent * file
Definition win32.c:1500