Thanks for the quick response.
I am using JSON .Net.
A correction in what I meant, sorry about that. While I am able to deserialize it, I am not able to access the property post deserialization. I am using C# dynamic object to store the deserialized response and trying to access the property with *
Normally, I am able to access a property using object.PropertyName. Just after I sent the email, I accessed the property using object["*"] instead of object.* and that worked.
From: mediawiki-api-bounces@lists.wikimedia.org [mailto:mediawiki-api-bounces@lists.wikimedia.org] On Behalf Of Betacommand
Sent: Monday, December 15, 2014 10:55 AM
To: MediaWiki API announcements & discussion
Subject: Re: [Mediawiki-api] Results from API in json format returns * as one of the properties
What JSON library are you using? Any decent library will handle it.
On Mon, Dec 15, 2014 at 1:52 PM, practikalmind <practikalmind@gmail.com> wrote:
Hi,
When I submit the API http://en.wikipedia.org/w/api.php?format=json&action=query&prop=revisions&rvprop=content|ids&pageids=7412236 I get the below with one of the properties as a *. Is it possible to get with a name like say content instead of the *. I am not able to de-serialize the response.
revisions
------{}
*={{about|the person|the biography|Steve Jobs (book)|the 2013 biographical film|Jobs (film)}}……..
contentformat=text/x-wiki
contentmodel=wikitext
parentid=638035784
revid=638103683
Thanks
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api