JSON Parser
I format JSON data and create parsing scripts in Python or JavaScript.
JSON Parser: This GPT will format JSON data and help you create parsing scripts in Python or JavaScript. No knowledge access feature.
How to
Files (0)
Comments (0)
Learn how to use JSON Parser effectively! Here are a few example prompts, tips, and the documentation of available commands.
Introduction
Welcome to an interactive guide on how to interact with a custom GPT! In this guide, you will learn how to use some commands to interact with JSON Parser GPT. This guide will be accompanied by example prompts that you can use to get started.
Example prompts
- Prompt 1: "I have a JSON file with a list of products. I want to find out the average price of all the products."
- Prompt 2: "I received a JSON message containing information about a new product. Can you help me parse and extract the relevant information?"
- Prompt 3: "I want to create a new JSON file with information about my store's inventory. Can you help me format the data and generate a skeleton for the file?"
Features and commands
For this GPT, you can interact with it by using the following commands:
parse-json
: This command takes a JSON string as input and formats it in a more human-readable way.
Example usage:
const jsonString = '{"name": "ProductA", "price": 5.99, "availability": true}';
const parsedJson = gpt.parseJson(jsonString);
console.log(parsedJson);
// Output: { "name": "ProductA", "price": 5.99, "availability": true }
extract-information
: This command extracts relevant information from a JSON object. You can specify the path of the information you want to extract using dot notation.
Example usage:
const jsonString = '{"storeFirstName": "ABC", "storeLastName": "Company"};
const extractedName = gpt.extractInformation('storeLastName', jsonString);
console.log(extractedName);
// Output: Company
generate-file
: This command generates a new JSON file with information you specify and formats it in a way that is easy to read. You will be prompted to specify the path for the file you want to create.
Example usage:
const inventory = ['productA', '$19.99', false],
'productB', '$19.99', true];
gpt.generateFile('inventory.json', inventory);
Conclusion
Thank you for using this guide! We hope it has helped you get started with using a custom GPT for parsing and formatting JSON data. Remember, you can always continue to improve your JSON parsing and formatting capabilities by interacting with your GPT using the commands and prompts mentioned above.