Skip to main content
edited body; edited title
Source Link
Jamal
  • 35.2k
  • 13
  • 134
  • 238

Is there a better way to process my Processing an API's JSON response?

I am trying to clean this up, breaking the script's main components into separate functions.:

Is there a better way to process my API's JSON response?

I am trying to clean this up, breaking the script's main components into separate functions.

Processing an API's JSON response

I am trying to clean this up, breaking the script's main components into separate functions:

make historical context part less obtrusive
Source Link
PleaseStand
  • 612
  • 5
  • 10

I am using the JSON output of the MediaWiki API documented here and here, and I have found that for Boolean values, it often returns an empty string if true and omits it if false. (Edit: This was before a new output format was added that uses native JSON true and false.) Thus, I want to "rationalize" the response.

(Historical context: This was before a new output format was added that uses native JSON true and false.)

I am using the JSON output of the MediaWiki API documented here and here, and I have found that for Boolean values, it often returns an empty string if true and omits it if false. (Edit: This was before a new output format was added that uses native JSON true and false.) Thus, I want to "rationalize" the response.

I am using the JSON output of the MediaWiki API documented here and here, and I have found that for Boolean values, it often returns an empty string if true and omits it if false. Thus, I want to "rationalize" the response.

(Historical context: This was before a new output format was added that uses native JSON true and false.)

provide historical context
Source Link
PleaseStand
  • 612
  • 5
  • 10

I am using the JSON output of the MediaWiki API documented herehere and herehere, and I have found that for Boolean values, it often returns an empty string if true and omits it if false. (Edit: This was before a new output format was added that uses native JSON true and false.) Thus, I want to "rationalize" the response.

I am using the JSON output of the MediaWiki API documented here and here, and I have found that for Boolean values, it often returns an empty string if true and omits it if false. Thus, I want to "rationalize" the response.

I am using the JSON output of the MediaWiki API documented here and here, and I have found that for Boolean values, it often returns an empty string if true and omits it if false. (Edit: This was before a new output format was added that uses native JSON true and false.) Thus, I want to "rationalize" the response.

NO PLAIN URLS PWEAZE
Source Link
syb0rg
  • 21.9k
  • 10
  • 113
  • 193
Loading
Source Link
PleaseStand
  • 612
  • 5
  • 10
Loading