Click here to Skip to main content
14,421,828 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
Slacker00720-Sep-19 3:54
professionalSlacker00720-Sep-19 3:54 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
honey the codewitch20-Sep-19 3:56
mvahoney the codewitch20-Sep-19 3:56 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
PIEBALDconsult20-Sep-19 4:12
professionalPIEBALDconsult20-Sep-19 4:12 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
honey the codewitch20-Sep-19 4:15
mvahoney the codewitch20-Sep-19 4:15 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
lw@zi 20-Sep-19 4:47
professional lw@zi 20-Sep-19 4:47 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
honey the codewitch20-Sep-19 5:29
mvahoney the codewitch20-Sep-19 5:29 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
musefan20-Sep-19 5:55
Membermusefan20-Sep-19 5:55 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
honey the codewitch20-Sep-19 6:02
mvahoney the codewitch20-Sep-19 6:02 
It would be part of the functionality of that JSON project i linked to so you are actually getting back class objects.

They're basically dictionary classes that support dynamic call sourcing ("expando" objects) that expose the fields as properties.

currently to do a rest call, you go something like

var args = new JsonObject();
args.Add("api_key", "c83a68923b7fe1d18733e8776bba59bb");
dynamic json = JsonRpc.Invoke("https://api.themoviedb.org/3/tv/2919", args);
Console.WriteLine(json.name); // writes "Burn Notice" to the console


and then you can do jsonpath queries or standard dictionary gets or dynamic calls (like above) on the object you get back. it's a dictionary with extra methods.

Or you can use any dictionary and get to the methods through static methods on JsonObject

There's lots of manipulation and querying features available, and features to help you create arrays of entities out of json arrays, etc.

This is the core library that I may add this support to.

So I'd add another way to do invocations using scraping and return the objects in the same manner.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
lw@zi 20-Sep-19 6:51
professional lw@zi 20-Sep-19 6:51 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
honey the codewitch20-Sep-19 6:54
mvahoney the codewitch20-Sep-19 6:54 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
Sander Rossel21-Sep-19 3:02
professionalSander Rossel21-Sep-19 3:02 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
honey the codewitch21-Sep-19 4:23
mvahoney the codewitch21-Sep-19 4:23 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
honey the codewitch21-Sep-19 4:25
mvahoney the codewitch21-Sep-19 4:25 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
Sander Rossel21-Sep-19 4:27
professionalSander Rossel21-Sep-19 4:27 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
honey the codewitch21-Sep-19 4:28
mvahoney the codewitch21-Sep-19 4:28 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
Sander Rossel21-Sep-19 4:39
professionalSander Rossel21-Sep-19 4:39 
GeneralMan vs. Machine Pin
PeejayAdams20-Sep-19 0:57
MemberPeejayAdams20-Sep-19 0:57 
AnswerRe: Man vs. Machine Pin
lopatir20-Sep-19 1:10
Memberlopatir20-Sep-19 1:10 
GeneralRe: Man vs. Machine Pin
PeejayAdams20-Sep-19 1:20
MemberPeejayAdams20-Sep-19 1:20 
GeneralRe: Man vs. Machine Pin
Slacker00720-Sep-19 2:28
professionalSlacker00720-Sep-19 2:28 
GeneralRe: Man vs. Machine Pin
CodeWraith20-Sep-19 3:05
MemberCodeWraith20-Sep-19 3:05 
GeneralRe: Man vs. Machine Pin
Slacker00720-Sep-19 3:57
professionalSlacker00720-Sep-19 3:57 
GeneralRe: Man vs. Machine Pin
musefan20-Sep-19 2:06
Membermusefan20-Sep-19 2:06 
GeneralRe: Man vs. Machine Pin
PeejayAdams20-Sep-19 2:17
MemberPeejayAdams20-Sep-19 2:17 
GeneralRe: Man vs. Machine Pin
musefan20-Sep-19 2:45
Membermusefan20-Sep-19 2:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.