Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


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.18 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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge