Click here to Skip to main content
15,896,111 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 2:54
professionalSlacker00720-Sep-19 2:54 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
honey the codewitch20-Sep-19 2:56
mvahoney the codewitch20-Sep-19 2:56 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
PIEBALDconsult20-Sep-19 3:12
mvePIEBALDconsult20-Sep-19 3:12 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
honey the codewitch20-Sep-19 3:15
mvahoney the codewitch20-Sep-19 3:15 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
dan!sh 20-Sep-19 3:47
professional dan!sh 20-Sep-19 3:47 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
honey the codewitch20-Sep-19 4:29
mvahoney the codewitch20-Sep-19 4:29 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
musefan20-Sep-19 4:55
musefan20-Sep-19 4:55 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
honey the codewitch20-Sep-19 5:02
mvahoney the codewitch20-Sep-19 5: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

C#
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
dan!sh 20-Sep-19 5:51
professional dan!sh 20-Sep-19 5:51 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
honey the codewitch20-Sep-19 5:54
mvahoney the codewitch20-Sep-19 5:54 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
Sander Rossel21-Sep-19 2:02
professionalSander Rossel21-Sep-19 2:02 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
honey the codewitch21-Sep-19 3:23
mvahoney the codewitch21-Sep-19 3:23 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
honey the codewitch21-Sep-19 3:25
mvahoney the codewitch21-Sep-19 3:25 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
Sander Rossel21-Sep-19 3:27
professionalSander Rossel21-Sep-19 3:27 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
honey the codewitch21-Sep-19 3:28
mvahoney the codewitch21-Sep-19 3:28 
GeneralRe: just thought of kind of a cool idea that's simple but neat (maybe) Pin
Sander Rossel21-Sep-19 3:39
professionalSander Rossel21-Sep-19 3:39 
GeneralMan vs. Machine Pin
PeejayAdams19-Sep-19 23:57
PeejayAdams19-Sep-19 23:57 
AnswerRe: Man vs. Machine Pin
lopatir20-Sep-19 0:10
lopatir20-Sep-19 0:10 
GeneralRe: Man vs. Machine Pin
PeejayAdams20-Sep-19 0:20
PeejayAdams20-Sep-19 0:20 
GeneralRe: Man vs. Machine Pin
Slacker00720-Sep-19 1:28
professionalSlacker00720-Sep-19 1:28 
GeneralRe: Man vs. Machine Pin
CodeWraith20-Sep-19 2:05
CodeWraith20-Sep-19 2:05 
GeneralRe: Man vs. Machine Pin
Slacker00720-Sep-19 2:57
professionalSlacker00720-Sep-19 2:57 
GeneralRe: Man vs. Machine Pin
musefan20-Sep-19 1:06
musefan20-Sep-19 1:06 
GeneralRe: Man vs. Machine Pin
PeejayAdams20-Sep-19 1:17
PeejayAdams20-Sep-19 1:17 
GeneralRe: Man vs. Machine Pin
musefan20-Sep-19 1:45
musefan20-Sep-19 1: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.