View Full Version : How to call Jason api in asp.net?
bestellen
11-19-2017, 09:54 AM
I want to call an api of JASON in asp.net project. How can I do that?I am using MVC framework
jscheuer1
11-19-2017, 06:09 PM
I hope you mean JSON. And though I cannot help you with asp.net or MVC, as I'm not all that familiar with them, in fact, in that direction I only know a little bit of generic asp. But JSON itself isn't an api, rather a strict method of representing arrays and/or objects as text and converting freely back and forth between the textual representation and the object/arrays depicted by it.
So, in theory at least, whatever you're using, if the api employs JSON text, you can extract the information in it in a wide variety of ways. Each coding system has a way to both encode and decode JSON text. Just use that to get the objects/arrays it represents and them parse them as such (as objects and/or arrays) to suit your purposes.
Sorry I can't be more specific at this time. Does that at least make sense to you?
A quick Google suggests:
Json.Decode(the_JSON_string)
is the syntax for extracting the objects/arrays in a JSON string in asp.net
Are you needing to also request the string?
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.