Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/francy/js/packages/francy-core/src/util/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 17.3.2023 mit Größe 911 B image not shown  

Quelle  json.js   Sprache: JAVA

 
/**
 * This class contains methods to handle this application JSON data.
 */

export default class JsonUtils {

  /**
   * Parses an input, checks whether this input is valid and returns a JSON object.
   *
   * @param input - the input to parse
   * @returns {object} - if the input is a valid JSON object returns an object
   */

  static parse(input) {
    if (!input) return;
    if (typeof input === 'string') {
      let jsonRegex = /{(?:[^])*}/g;
      let match = jsonRegex.exec(input);
      if (match) {
        input = JSON.parse(match[0]);
      } else {
        input = {output: input};
      }
    }
    return input;
  }

  /**
   * Returns a static string representing the mime type supported by this package
   *
   * @returns {string} constant string 'application/vnd.francy+json'
   */

  static get MIME() {
    return 'application/vnd.francy+json';
  }

}

export const MIME = JsonUtils.MIME;

Messung V0.5
C=90 H=83 G=86

¤ Dauer der Verarbeitung: 0.24 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.