#C13414. Book Collection JSON Generator

    ID: 42950 Type: Default 1000ms 256MiB

Book Collection JSON Generator

Book Collection JSON Generator

You are required to write a program that prints a JSON representation of a book collection. The book collection is a list containing exactly one book. The book is represented as a JSON object with the following structure:

  • title: The title of the book (a string).
  • author: The author of the book (a string).
  • page_count: The number of pages in the book (an integer).
  • publisher: A JSON object representing the publisher with the fields:
    • name: The name of the publisher (a string).
    • year_of_publication: The year the book was published (an integer).

Your program does not need to read any meaningful input. It should simply ignore any input provided via stdin and print the JSON structure to stdout exactly as described. All formulas (if any) should be formatted in LaTeX.

inputFormat

The input is provided via stdin. It can be empty or contain arbitrary data which should be ignored by your program.

outputFormat

The output should be printed to stdout and must be the JSON representation of the book collection exactly as follows:

[{"title": "To Kill a Mockingbird", "author": "Harper Lee", "page_count": 281, "publisher": {"name": "J.B. Lippincott & Co.", "year_of_publication": 1960}}]
## sample
[{"title": "To Kill a Mockingbird", "author": "Harper Lee", "page_count": 281, "publisher": {"name": "J.B. Lippincott & Co.", "year_of_publication": 1960}}]