Bobinas P4G
  • Login
  • Public

    • Public
    • Groups
    • Popular
    • People

Conversation

Notices

  1. muesli (fribbledom@mastodon.social)'s status on Friday, 19-Apr-2019 17:52:34 UTC muesli muesli
    • raphael

    @gekitsu

    Sorry that I missed that one!

    If there's no "City" key in the JSON itself, then it would _not_ return an error. It tries to fill the struct to the best of its abilities. j.City wouldn't get touched in such a case and simply remain an empty string.

    Similarly: if there's a "City" in the JSON, but no "j.City" member, it would simply ignore that and move on with the next value.

    In conversation Friday, 19-Apr-2019 17:52:34 UTC from mastodon.social permalink
    • muesli (fribbledom@mastodon.social)'s status on Friday, 19-Apr-2019 17:52:47 UTC muesli muesli
      in reply to
      • raphael

      @gekitsu

      I think that's rather reasonable behavior. It doesn't break your API clients just because a new member has been added to the JSON server-side.

      In conversation Friday, 19-Apr-2019 17:52:47 UTC permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • Privacy
  • Source
  • Version
  • Contact

Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.