87a16eb shared/json: use different return code for empty input

Authored and Committed by zbyszek 2 years ago
    shared/json: use different return code for empty input
    
    It is useful to distinguish if json_parse_file() got no input or invalid input.
    Use different return codes for the two cases.
    
        
file modified
+1 -1
file modified
+4 -2
file modified
+18 -0