Is it a poorly written API if it returns different values for XML and JSON?

civaKadyKeype

New Member
I'm dealing with an api that returns for XML for some values int or 0 if there is no value - this is how it should be IMHO, but for JSON it returns int or boolean false if there is no value. Does it mean that it's poorly written api or JSON and XML values can differ? I thought it should be always the same and completely interchangeable.
 
Back
Top