fcl-json - add helpers for examination with branches
Original Reporter info from Mantis: BBaz @basile.b
-
Reporter name:
Original Reporter info from Mantis: BBaz @basile.b
- Reporter name:
Description:
This patch adds a new family of helper functions to TJSONObject. It allows to write clean conditional branches from an object, e.g
if MyObjectJson.FindArray('items', MyArray) and not
MyObjectJson.FindData('disabled', MyData) then
begin
for i:= 0 to MyArray.Count-1 do {...};
end;
Additional information:
The patch ass a test but I wasn't able to run it because another test fails previously.
Mantis conversion info:
- Mantis ID: 31032
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 35343 (#1a771735)
- Target version: 3.2.0