Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6 Usage Examples for JSON - Part 3 #333

Open
wants to merge 2 commits into
base: usage-examples
Choose a base branch
from

Conversation

breezy-codes
Copy link

Created JSON functions for json_read_number_as_int, json_read_object, json_read_string, json_set_bool, json_set_number_double, and json_set_number_float.

These all show simple ways of using these functions all by creating a json object within the code and then doing the specific function.

Files Included (For all functions)

  • Title and explanation (.txt)
  • C++ code
  • C# code (top-level statements)
  • C# code (Object-Oriented Programming)
  • Python code
  • Screenshot

Usage Example Checks

  • Simple, clear demonstration of the function
  • Code uses Splashkit functions
  • Tested in Chrome and Firefox

Copy link

netlify bot commented Dec 8, 2024

Deploy Preview for splashkit-usage-examples ready!

Name Link
🔨 Latest commit 28517fd
🔍 Latest deploy log https://app.netlify.com/sites/splashkit-usage-examples/deploys/675e5c4f0db4e80008557303
😎 Deploy Preview https://deploy-preview-333--splashkit-usage-examples.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

@EthanRin EthanRin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've reviewed these usage examples and have tested each implementation of the program across different languages. The code is well-structured and is consistent throughout each implementations. Although there is a change that can be made for the function json_read_number_as_int where it's calling JsonReadNumberAsDouble and parsing it as an int rather than using JsonReadNumberAsInt. Please update this to showcase the actual function.

Once updated, I'd be happy to approve this PR.

Copy link

@EthanRin EthanRin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've reviewed this usage example and have tested each implementation of the program across different languages.
The code is well-structured and is consistent throughout each implementations. I approved of this PR.

Checklist

  • Code uses SplashKit functions
  • Code demonstrates uses of the functions
  • Python code ran as expected.
  • C# OOP code ran as expected.
  • C# Top Level code ran as expected
  • C++ Code ran as expected

Files required

  • Python code
  • C# OOP code
  • C# Top Level code
  • C++ Code
  • Screenshot of the program running
  • Title and description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants