Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » ParseJSON now throws exception
Re: ParseJSON now throws exception [message #49136 is a reply to message #49135] Mon, 25 December 2017 07:16 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Mindtraveller wrote on Sun, 24 December 2017 21:48
If non-json data is met, old version of ParseJSON just returned error Value. The current version of ParseJSON looks like thrown an exception. This is not very good because it is different behavior which conflicts with old codebase. So I propose considering it a bug.


There was no change.

However, there were always two overloads:

Value ParseJSON(CParser& p);
Value ParseJSON(const char *s);

First one throws, second one returns Void.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to use xmlparser to parse this document?
Next Topic: CreateSymbolicLink doesn't compile using MinGW
Goto Forum:
  


Current Time: Fri Mar 29 16:53:21 CET 2024

Total time taken to generate the page: 0.01910 seconds