question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for key-value JSON

See original GitHub issue

Currently, Pontoon only supports WebExtension JSON files. Key-Value JSON files seem to be used by people (including me 👀), adding support for them would be nice.

Implementation

As it’s been pointed out by @mathjazz on Mozilla chat, the key-value files parser could be selected seamlessly alongside the WebExtension one. Indeed files in WebExtension must be named messages.json.

The only constraint to use the key-value parser would be to use a filename different than messages.json. Additionally, we could fall back on the key-value parser if the messages.json structure could not be validated, but I guess this would lead to UX issues in case of structure error in an actual WebExtension file.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mathjazzcommented, Mar 22, 2022

Thanks for the great work! 👍

1reaction
Freebioscommented, Mar 22, 2022

This can be closed now 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to add key value pair in the JSON object already declared
I have declared a JSON Object and added some ...
Read more >
Adding a new key value pair in the JSON array [duplicate]
i am trying to add a new key value pair like : -- "ASD":"1" in the first row and "ASD":"2" in the second...
Read more >
MySQL 8.0 Reference Manual :: 11.5 The JSON Data Type
MySQL supports a native JSON data type defined by RFC 7159 that enables ... A JSON object contains a set of key-value pairs...
Read more >
Work with JSON data - SQL Server - Microsoft Learn
The next sections discuss the key capabilities that SQL Server provides with its built-in JSON support. Extract values from JSON text and use ......
Read more >
Setting a Key-value Pair - Kii Documentation
In order to set a key-value pair at the second or subsequent level, prepare a JSON object that has the key-value pair at...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found