question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add JSON type for custom fields

See original GitHub issue

Overview

Users often need to support more advanced data structures as a custom field. This would add support for a JSON type to this list of available options when creating a CF.

image

User Story

As Austin a Network Automation Engineer, I want to be able to create custom fields that can store JSON data, so that I am not required to use config contexts. This will allow me to ensure these fields are “required” when adding/editing objects.

Acceptance Criteria

  • Allows a CF to be of “JSON” data type
  • Validates submitted data is valid JSON
  • To view CF data of JSON type, a “View Value” link should be presented to see the full payload. This keeps the UI clean for large JSON values.
  • Basic searching (icontains) of JSON custom fields in UI and API

Out of Scope

  • Is it NOT expected to be able to search into the field value

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
jedelman8commented, Sep 14, 2021

Initially taking on the JSON support (no schema) per #1 above.

1reaction
sirtuxcommented, Sep 16, 2021

Does this also need support in pynautobot as well?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow JSON Data Type for custom fields - IdeaExchange
We would like to use a JSON field type to store some additional read-only structured data on a record and enforce the structural...
Read more >
Advanced field editing using JSON | Cloud automation Cloud
The More options field on automation actions in Jira Cloud allow you to specify a valid JSON object reference and edit issue fields....
Read more >
Local JSON - ACF
Local JSON is a new feature added in version 5 which saves field group and field settings as .json files within your theme....
Read more >
How to save individual JSON data to a custom field?
I was able to get this to work: // get URL from post_content $url = get_post_field('post_content', $post_id); // fetch JSON data from ...
Read more >
Adding fields to the Data fields configuration page - IBM
Developers can add custom summary fields and custom table columns by customizing JSON files. You can add the custom fields to this configuration...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found