PHP Array to JSON
Convert a PHP array literal into valid JSON the way json_encode does, with comments, trailing commas and both [] and array() syntax handled. Free, in browser.
Runs in your browser · files never uploaded 100% free
Related tools
JSON to GraphQL SchemaGenerate GraphQL type definitions from sample JSON, with Int, Float, ID and non-null fields and nested types named after their fields. Free and in your browser.GraphQL to TypeScript TypesGenerate TypeScript interfaces, enums and unions from a GraphQL schema (SDL), with correct nullability for lists and non-null fields. Free, in your browser.Enum GeneratorTurn a list of values into enums for TypeScript, Java, C#, Python, Go, Kotlin, Swift, Rust, PHP, C++ or Dart, with string or number values. Free.Java Getter Setter GeneratorGenerate getters, setters, constructors, toString, equals and hashCode from Java fields, following JavaBeans naming like isActive(). Free and in your browser.TypeScript FormatterFormat TypeScript and TSX code with Prettier rules, choosing print width, indent, quotes, semicolons and trailing commas, with clear errors. Free.JavaScript Syntax CheckerFind syntax errors in JavaScript with the exact line and column, using the same parser as ESLint, Babel for JSX, or strict Acorn. Free, in your browser.