commit | 6e47a409914d9f2ccb169482252f142c9fb503b8 | [log] [tgz] |
---|---|---|
author | adonovan <adonovan@google.com> | Mon Oct 19 15:16:15 2020 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Oct 19 15:17:16 2020 -0700 |
tree | 74e23fe504350c8cd5d0637fff4713bc55c12ce2 | |
parent | 6cb560f7c0bbbbf2308d37f1cb24c5af691ba5db [diff] |
starlark/lib/json: a JSON module for Starlark This CL ports the go.starlark.net/starlarkjson module from Go to Java. The json module provides four functions: json.decode json.encode json.indent (not yet implemented) json.encode_indent (not yet implemented) It is tested through eval.ScriptTest, which adds the json module to its environment, along with 'struct', a simple struct-like type. Some tests are commented out, awaiting StarlarkFloat, or richer string support. This is a first step towards removing Bazel's struct.to_json. Updates bazelbuild/starlark#83 PiperOrigin-RevId: 337944489
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel rebuilds only what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md