juce-framework / JUCE

JUCE is an open-source cross-platform C++ application framework for desktop and mobile applications, including VST, VST3, AU, AUv3, LV2 and AAX audio plug-ins.
https://juce.com
Other
6.36k stars 1.68k forks source link

[Bug]: juce::JSON::parse ignoring end of JSON #1407

Open ArthurVasseur opened 2 weeks ago

ArthurVasseur commented 2 weeks ago

Detailed steps on how to reproduce the bug

Folowing the discution on the forum

I’m attempting to parse an improperly formatted JSON string using JUCE:

juce::var json;

juce::String jsonString =  "{\n   \"value\": false\n}sssss"

juce::Result res = juce::JSON::parse(jsonString, json);

What is the expected behaviour?

The juce::JSON::parse function is returning without any issues.

Operating systems

Windows

What versions of the operating systems?

W11

Architectures

x86_64

Stacktrace

No response

Plug-in formats (if applicable)

No response

Plug-in host applications (DAWs) (if applicable)

No response

Testing on the develop branch

I have not tested against the develop branch

Code of Conduct