Feature #72018

Integrate JSON cObject

Added by Oliver Hader almost 4 years ago. Updated 12 months ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2015-12-02
Due date:
% Done:

0%

PHP Version:
5.5
Tags:
Complexity:
Sprint Focus:

Description

Integrate a possibility to render a JSON string using a new TypoScript content object.

Example

page.10 = JSON
page.10 {
    type = object

    leveltitle = TEXT
    leveltitle {
        data = leveltitle:-1,slide
    }

    levelmedia = TEXT
    levelmedia {
        data = levelmedia:-1,slide
    }
}
  • type: object | array - defines the type of the subject to be build
  • *: accordant sub cObjects to be rendered

Related issues

Related to TYPO3 Core - Epic #82839: Json API for implementing single-page applications Accepted 2017-10-22

History

#1 Updated by Oliver Hader almost 4 years ago

  • Description updated (diff)

#2 Updated by Mathias Brodala almost 4 years ago

What does as here? AFAIK this should render a JSON encoded string in the end.

#3 Updated by Oliver Hader almost 4 years ago

Okay as should be type then... defining whether the base type should be build as array or object.

#4 Updated by Oliver Hader almost 4 years ago

  • Description updated (diff)

#5 Updated by Mathias Brodala almost 4 years ago

Ah, gotcha. ;-) But what about the other options? Maybe add something like options instead which either directly accepts a list of JSON_ constant names or takes a list of properties which are internally processed to set the constants as necessary.

#6 Updated by Riccardo De Contardi over 2 years ago

  • Target version changed from 8 LTS to 9.0

#7 Updated by Susanne Moog almost 2 years ago

  • Target version deleted (9.0)

#8 Updated by Susanne Moog over 1 year ago

  • Related to Epic #82839: Json API for implementing single-page applications added

#9 Updated by Benni Mack 12 months ago

  • Status changed from New to Rejected

I'd suggest that we do not introduce this kind of new feature for TypoScript anymore - if somebody wants to use a JSON frontend, we should build it on top of sth else than TypoScript.

Also available in: Atom PDF