Skip to content

Add ui to directly import JSON #1872

Open

Description

@christianlupus

The wish was written to have a way to copy and paste JSON data in the web UI. This should be possible with the rework in general.


Would certainly be a great feature I have used Chatgpt to reformat an unstructured recipe into schema .org format to get output like (see below). To be able to import this directly, would be ideal.

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Recipe",
  "name": "2 HOUR Crockpot Bread",
  "author": "Pamela Reed",
  "description": "Easy to make 2 HOUR Crockpot Bread recipe. Throw it in the crock pot and you will have soft homemade bread in 2 hours! This is the best bread to serve with creamy soups and casseroles.",
  "prepTime": "PT45M",
  "cookTime": "PT2H",
  "recipeYield": "10 servings",
  "recipeIngredient": [
    "1 cup warm water",
    "1/3 cup sugar",
    "1 tablespoon active dry yeast",
    "1 1/2 teaspoon salt",
    "2 tablespoons vegetable oil",
    "3 cups all-purpose flour",
    "rosemary (optional)"
  ],
  "recipeInstructions": [
    "Pour warm water into a large bowl. Add sugar and mix until dissolved. Add dry yeast and stir. Let sit for about 10 minutes until foamy. I always find it helps to sit it in a warm spot.",
    "Add salt to the bowl and stir to dissolve. Add vegetable oil.",
    "Add flour and mix with hands until everything is combined. Knead the dough for 5 minutes and form into a round ball.",
    "Place the dough in an olive oil-coated bowl and cover with plastic wrap. Sit in a warm spot for 30 minutes to rise, doubling in size.",
    "Cut a piece of parchment paper and place it in the bottom of the slow cooker. Make sure the parchment paper comes up the bottom of the sides of the slow cooker so when the bread expands, it won't stick to the sides. Additionally, I like to spray the parchment paper with nonstick spray.",
    "Place your dough into the slow cooker. Sprinkle with rosemary.",
    "Cook on HIGH for 2 hours.",
    "Remove from the slow cooker and brush a little bit of butter on top. Place under the broiler for about 1 minute until slightly brown. Keep an eye on it and make sure it does not burn! Broiling is not a necessary step, but I recommend it to get the top crispy!"
  ]
}
</script>

Originally posted by @gewinh in #1671 (comment)

Activity

  1. changed the title [-]The wish was written to have a way to copy and paste JSON data in the web UI. This should be possible with the rework in general. --- Would certainly be a great feature I have used Chatgpt to reformat an unstructured recipe into schema .org format to get output like (see below). To be able to import this directly, would be ideal.[/-] [+]Add ui to directly import JSON[/+] on Oct 30, 2023
  2. christianlupus commented on Oct 30, 2023

    @christianlupus
    CollaboratorAuthor

    See also #1244

  3. online-today commented on Dec 19, 2024

    @online-today

    I had to make a new installation of nextcloud and cookbook. Afterwards I did not find a way to import my old recipes from my cookbook backup. I tried to give the path of the backup json file into cookbook but it did not work. I copied the recipes into the nextcloud-recipe-folder. It did not work either. So I would be glad to have any way, to reimport older recipes.
    The problem is: if it were just about recipes from the web, I could extract the web adress. But it is about manually entered recipes.

  4. online-today commented on Dec 19, 2024

    @online-today

    I found a solution for old recipes: I had copied the old recipes just locally and expected them to be synchronized automatically. But now I have discovered: If I copy the folder of a recipe via drag & drop into the server folder via the web interface, the old recipe is recognized and integrated. Great!

  5. Tirpitz93 commented on Oct 7, 2025

    @Tirpitz93

    any update to this?
    couldnt the same input field for both, and if it detects a valid url it fetches it, if its valid json it imports it?

  6. TheTisiboth commented on Oct 9, 2026

    @TheTisiboth
    Collaborator

    Hello there
    I have a proposal here, to add a new entry to paste a JSON and create the recipe.
    Let me know if it is fine or if it is missing anything 🙏
    Cc @christianlupus

  7. TheTisiboth commented on Oct 15, 2026

    @TheTisiboth
    Collaborator

    I tested the feature on the following websites to make sure that all kind of formats are compatible:
    allrecipes.com, bbcgoodfood.com, bonappetit.com, budgetbytes.com, chefkoch.de, cookieandkate.com, cuisineaz.com, delish.com, eatsmarter.de, epicurious.com, food.com, giallozafferano.it, gutekueche.at, justonecookbook.com, kingarthurbaking.com, kuchniastudenta.pl, marmiton.org, cooking.nytimes.com, pinchofyum.com, recipetineats.com, ricardocuisine.com, seriouseats.com, simplyrecipes.com, tasty.co, wandercooks.com

    so we should have a pretty good test coverage here 😇
    cc @christianlupus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrontendIssue or PR related to the frontend codeenhancementNew feature or request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions