Overview

Namespaces

  • PHP
  • SimpleExcel
    • Enums
    • Parser
    • Spreadsheet
    • Writer

Classes

  • BaseParser
  • CSVParser
  • HTMLParser
  • JSONParser
  • TSVParser
  • XLSXParser
  • XMLParser

Interfaces

  • IParser
  • Overview
  • Namespace
  • Class
  • Tree

Class JSONParser

SimpleExcel class for parsing JSON table

SimpleExcel\Parser\BaseParser implements SimpleExcel\Parser\IParser
Extended by SimpleExcel\Parser\JSONParser
Namespace: SimpleExcel\Parser
Package: SimpleExcel
Author: Faisalman
Located at Parser/JSONParser.php
Methods summary
public
# loadFile( string $file_path, array $options = NULL )

Load the JSON file to be parsed

Load the JSON file to be parsed

Parameters

$file_path
string
$file_path Path to JSON file
$options
array
$options Options
public
# loadString( string $str, array $options = NULL )

Load the string to be parsed

Load the string to be parsed

Parameters

$str
string
$str String with JSON format
$options
array
$options Options

Throws

Exception
If JSON format is invalid (or too deep)
Methods inherited from SimpleExcel\Parser\BaseParser
__construct(), checkFile()
Properties summary
protected string $file_extension 'json'
#

Defines valid file extension

Defines valid file extension

Properties inherited from SimpleExcel\Parser\BaseParser
$workbook
API documentation generated by ApiGen 2.8.0