Closed edent closed 12 years ago
While I agree and like what you're thinking, I think it could maybe cause issues due to the lack of 'type' or 'value' properties (though they are intrinsically implied). Something tells me people could do evil things. Or something.
So far, the App.net API always uses JSON objects as objects with a fixed set of properties, not dictionaries/hashes with keys that vary from one place to another. What you're suggesting simply isn't the style of the App.net API.
(Remember, you can always rearrange the annotations into whatever data structure is most convenient for you.)
Forgive my ignorance - is there a good technical reason why that is the case? Are the specific advantages to do it that way?
That's not valid JSON, and I'm not sure what you're intending. However, besides the fixed schema issue, it seems like this would not allow two annotations with the same type. Some annotations may want to allow this; for instance a post about two places you were today might have two geo points.
@mattflaschen sorry, have updated it - that's what I get for mixing PHP & JSON :-) Hope that makes it clearer.
However, your point about having duplicate annotations in the same post is an interesting one.
Basically what @mattflaschen said: the point is to allow multiple annotations of the same type in the same post. I don't anticipate this changing anytime soon, so I'm going to close this issue.
I would like annotations to look like this:
This would mean that we could do
Rather than