Example response: true
That's it :) Just a bare boolean literal. On Tue, Dec 16, 2008 at 17:06, Kazuho Okui <kaz...@gmail.com> wrote: > > This will break my app. 1 week to 10 days to get an approval from Apple. > > Also, please give us a example of new response. > > On Tue, Dec 16, 2008 at 4:53 PM, Cameron Kaiser <spec...@floodgap.com> wrote: >> >>> As per http://code.google.com/p/twitter-api/issues/detail?id=202, I'd >>> like to return a proper boolean in the JSON response for >>> /friendships/exists. Will this break your app? If so, how much time >>> to do you need to ship a fix? >> >> TTYtter uses its own internal JSON parser and in fact special cases trivial >> Booleans and stringified Booleans: >> >> if ($data =~ /^['"]?(true|false)['"]?$/); >> >> So it will accept any of "true", true, "false", false, etc. If you decided >> to wrap it in something, though, I'd need to account for that. As described >> in the issue, it should be okay. >> >> -- >> ------------------------------------ personal: http://www.cameronkaiser.com/ >> -- >> Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com >> -- He whose face gives no light, shall never become a star. -- William Blake >> -- >> > -- Alex Payne - API Lead, Twitter, Inc. http://twitter.com/al3x