Skip to content

Advanced_view does not work with JSON arrays #5

@sedubois

Description

@sedubois

Currently it is not possible to use the advanced_view option for displaying JSON arrays as the code is defined as follows:

      def advanced_view?
        advanced_view.present? && advanced_view.is_a?(Hash)
      end

E.g if the JSON value is ["one", "two", "three"], it would be nice to be able to just display one, two, three instead of the heavy-looking jsoneditor, and also this advanced_view is necessary to enforce the structure of the data (e.g ensuring the editor won't enter a hash when an array should be provided).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions